mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
9830e7ea42
Add ranged checked OSSL_PARAM conversions between the native types. A conversion is legal only if the given value can be exactly represented by the target type. Includes a test case that reads a stanza test case file and verified that param conversions are processed properly. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8733)
24 lines
649 B
Perl
24 lines
649 B
Perl
#! /usr/bin/env perl
|
|
# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
# this file except in compliance with the License. You can obtain a copy
|
|
# in the file LICENSE in the source distribution or at
|
|
# https://www.openssl.org/source/license.html
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use OpenSSL::Test qw/:DEFAULT data_file/;
|
|
|
|
setup("test_params_conversion");
|
|
|
|
my @files = ( "native_types.txt" );
|
|
|
|
plan tests => scalar(@files);
|
|
|
|
foreach my $f ( @files ) {
|
|
ok(run(test(["params_conversion_test", data_file("$f")])),
|
|
"running params_conversion_test $f");
|
|
}
|