Latest update, add TLS 1.3 session time configuration.
This commit is contained in:
+15
-8
@@ -1,5 +1,5 @@
|
||||
#! /usr/bin/env perl
|
||||
# Copyright 2002-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2002-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
|
||||
@@ -142,16 +142,18 @@ sub name_synopsis()
|
||||
}
|
||||
}
|
||||
|
||||
# Check if EXAMPLES is located after RETURN VALUES section.
|
||||
sub check_example_location()
|
||||
# Check if SECTION is located before BEFORE
|
||||
sub check_section_location()
|
||||
{
|
||||
my $filename = shift;
|
||||
my $contents = shift;
|
||||
my $section = shift;
|
||||
my $before = shift;
|
||||
|
||||
return unless $contents =~ /=head1 RETURN VALUES/
|
||||
and $contents =~ /=head1 EXAMPLES/;
|
||||
print "$filename: RETURN VAULES should be placed before EXAMPLES section\n"
|
||||
if $contents =~ /=head1 EXAMPLES.*=head1 RETURN VALUES/ms;
|
||||
return unless $contents =~ /=head1 $section/
|
||||
and $contents =~ /=head1 $before/;
|
||||
print "$filename: $section should be placed before $before section\n"
|
||||
if $contents =~ /=head1 $before.*=head1 $section/ms;
|
||||
}
|
||||
|
||||
sub check()
|
||||
@@ -167,7 +169,12 @@ sub check()
|
||||
close POD;
|
||||
}
|
||||
|
||||
&check_example_location($filename, $contents) if $filename =~ m|man3/|;
|
||||
# Check if EXAMPLES is located after RETURN VALUES section.
|
||||
&check_section_location($filename, $contents, "RETURN VALUES", "EXAMPLES") if $filename =~ m|man3/|;
|
||||
# Check if HISTORY is located after SEE ALSO
|
||||
&check_section_location($filename, $contents, "SEE ALSO", "HISTORY") if $filename =~ m|man3/|;
|
||||
# Check if SEE ALSO is located after EXAMPLES
|
||||
&check_section_location($filename, $contents, "EXAMPLES", "SEE ALSO") if $filename =~ m|man3/|;
|
||||
|
||||
my $id = "${filename}:1:";
|
||||
|
||||
|
||||
+7
-4
@@ -684,7 +684,7 @@ PKCS7_SIGNER_INFO_it 683 3_0_0 EXIST:!EXPORT_VAR_AS_FUNCTION:
|
||||
PKCS7_SIGNER_INFO_it 683 3_0_0 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
|
||||
CRYPTO_ocb128_copy_ctx 684 3_0_0 EXIST::FUNCTION:OCB
|
||||
TS_REQ_get_ext_d2i 685 3_0_0 EXIST::FUNCTION:TS
|
||||
AES_ige_encrypt 686 3_0_0 EXIST::FUNCTION:
|
||||
AES_ige_encrypt 686 3_0_0 EXIST::FUNCTION:DEPRECATEDIN_3
|
||||
d2i_SXNET 687 3_0_0 EXIST::FUNCTION:
|
||||
CTLOG_get0_log_id 688 3_0_0 EXIST::FUNCTION:CT
|
||||
CMS_RecipientInfo_ktri_get0_signer_id 689 3_0_0 EXIST::FUNCTION:CMS
|
||||
@@ -1456,7 +1456,7 @@ EVP_PKEY_get0_DH 1442 3_0_0 EXIST::FUNCTION:DH
|
||||
d2i_OCSP_CRLID 1443 3_0_0 EXIST::FUNCTION:OCSP
|
||||
EVP_CIPHER_CTX_set_padding 1444 3_0_0 EXIST::FUNCTION:
|
||||
CTLOG_new_from_base64 1445 3_0_0 EXIST::FUNCTION:CT
|
||||
AES_bi_ige_encrypt 1446 3_0_0 EXIST::FUNCTION:
|
||||
AES_bi_ige_encrypt 1446 3_0_0 EXIST::FUNCTION:DEPRECATEDIN_3
|
||||
ERR_pop_to_mark 1447 3_0_0 EXIST::FUNCTION:
|
||||
CRL_DIST_POINTS_new 1449 3_0_0 EXIST::FUNCTION:
|
||||
EVP_PKEY_get0_asn1 1450 3_0_0 EXIST::FUNCTION:
|
||||
@@ -4788,9 +4788,12 @@ OSSL_PARAM_get_utf8_ptr 4735 3_0_0 EXIST::FUNCTION:
|
||||
OSSL_PARAM_set_utf8_ptr 4736 3_0_0 EXIST::FUNCTION:
|
||||
OSSL_PARAM_get_octet_ptr 4737 3_0_0 EXIST::FUNCTION:
|
||||
OSSL_PARAM_set_octet_ptr 4738 3_0_0 EXIST::FUNCTION:
|
||||
X509_set_sm2_id 4739 3_0_0 EXIST::FUNCTION:SM2
|
||||
X509_set0_sm2_id 4739 3_0_0 EXIST::FUNCTION:SM2
|
||||
X509_get0_sm2_id 4740 3_0_0 EXIST::FUNCTION:SM2
|
||||
EVP_PKEY_get0_engine 4741 3_0_0 EXIST::FUNCTION:ENGINE
|
||||
EVP_MD_upref 4742 3_0_0 EXIST::FUNCTION:
|
||||
EVP_MD_fetch 4743 3_0_0 EXIST::FUNCTION:
|
||||
EVP_chacha20_poly1305_draft 4744 3_0_0 EXIST::FUNCTION:CHACHA,POLY1305
|
||||
EVP_set_default_properties 4744 3_0_0 EXIST::FUNCTION:
|
||||
OSSL_PARAM_construct_end 4745 3_0_0 EXIST::FUNCTION:
|
||||
EC_GROUP_check_named_curve 4746 3_0_0 EXIST::FUNCTION:EC
|
||||
EVP_chacha20_poly1305_draft 4747 3_0_0 EXIST::FUNCTION:CHACHA,POLY1305
|
||||
@@ -503,3 +503,4 @@ SSL_CTX_set_async_callback_arg 503 3_0_0 EXIST::FUNCTION:
|
||||
SSL_set_async_callback 504 3_0_0 EXIST::FUNCTION:
|
||||
SSL_set_async_callback_arg 505 3_0_0 EXIST::FUNCTION:
|
||||
SSL_get_async_status 506 3_0_0 EXIST::FUNCTION:
|
||||
SSL_CTX_set_timeout_tls13 507 3_0_0 EXIST::FUNCTION:
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2016-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
|
||||
@@ -14,7 +14,7 @@ use Test::More 0.96;
|
||||
|
||||
use Exporter;
|
||||
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
|
||||
$VERSION = "0.8";
|
||||
$VERSION = "1.0";
|
||||
@ISA = qw(Exporter);
|
||||
@EXPORT = (@Test::More::EXPORT, qw(setup run indir cmd app fuzz test
|
||||
perlapp perltest subtest));
|
||||
@@ -22,7 +22,8 @@ $VERSION = "0.8";
|
||||
srctop_dir srctop_file
|
||||
data_file data_dir
|
||||
pipe with cmdstr quotify
|
||||
openssl_versions));
|
||||
openssl_versions
|
||||
ok_nofips is_nofips isnt_nofips));
|
||||
|
||||
=head1 NAME
|
||||
|
||||
@@ -831,6 +832,63 @@ sub openssl_versions {
|
||||
return @versions;
|
||||
}
|
||||
|
||||
=over 4
|
||||
|
||||
=item B<ok_nofips EXPR, TEST_NAME>
|
||||
|
||||
C<ok_nofips> is equivalent to using C<ok> when the environment variable
|
||||
C<FIPS_MODE> is undefined, otherwise it is equivalent to C<not ok>. This can be
|
||||
used for C<ok> tests that must fail when testing a FIPS provider. The parameters
|
||||
are the same as used by C<ok> which is an expression EXPR followed by the test
|
||||
description TEST_NAME.
|
||||
|
||||
An example:
|
||||
|
||||
ok_nofips(run(app(["md5.pl"])), "md5 should fail in fips mode");
|
||||
|
||||
=item B<is_nofips EXPR1, EXPR2, TEST_NAME>
|
||||
|
||||
C<is_nofips> is equivalent to using C<is> when the environment variable
|
||||
C<FIPS_MODE> is undefined, otherwise it is equivalent to C<isnt>. This can be
|
||||
used for C<is> tests that must fail when testing a FIPS provider. The parameters
|
||||
are the same as used by C<is> which has 2 arguments EXPR1 and EXPR2 that can be
|
||||
compared using eq or ne, followed by a test description TEST_NAME.
|
||||
|
||||
An example:
|
||||
|
||||
is_nofips(ultimate_answer(), 42, "Meaning of Life");
|
||||
|
||||
=item B<isnt_nofips EXPR1, EXPR2, TEST_NAME>
|
||||
|
||||
C<isnt_nofips> is equivalent to using C<isnt> when the environment variable
|
||||
C<FIPS_MODE> is undefined, otherwise it is equivalent to C<is>. This can be
|
||||
used for C<isnt> tests that must fail when testing a FIPS provider. The
|
||||
parameters are the same as used by C<isnt> which has 2 arguments EXPR1 and EXPR2
|
||||
that can be compared using ne or eq, followed by a test description TEST_NAME.
|
||||
|
||||
An example:
|
||||
|
||||
isnt_nofips($foo, '', "Got some foo");
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
sub ok_nofips {
|
||||
return ok(!$_[0], @_[1..$#_]) if defined $ENV{FIPS_MODE};
|
||||
return ok($_[0], @_[1..$#_]);
|
||||
}
|
||||
|
||||
sub is_nofips {
|
||||
return isnt($_[0], $_[1], @_[2..$#_]) if defined $ENV{FIPS_MODE};
|
||||
return is($_[0], $_[1], @_[2..$#_]);
|
||||
}
|
||||
|
||||
sub isnt_nofips {
|
||||
return is($_[0], $_[1], @_[2..$#_]) if defined $ENV{FIPS_MODE};
|
||||
return isnt($_[0], $_[1], @_[2..$#_]);
|
||||
}
|
||||
|
||||
######################################################################
|
||||
# private functions. These are never exported.
|
||||
|
||||
@@ -861,6 +919,12 @@ are located. Defaults to C<$TOP/test> (adapted to the operating system).
|
||||
If defined, it puts testing in a different mode, where a recipe with
|
||||
failures will result in a C<BAIL_OUT> at the end of its run.
|
||||
|
||||
=item B<FIPS_MODE>
|
||||
|
||||
If defined it indicates that the FIPS provider is being tested. Tests may use
|
||||
B<ok_nofips>, B<is_nofips> and B<isnt_nofips> to invert test results
|
||||
i.e. Some tests may only work in non FIPS mode.
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
# Copyright 2016-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
|
||||
@@ -53,6 +53,7 @@ STRING is "tls", or for all the available DTLS versions if STRING is
|
||||
returned list can be used with B<alldisabled> and B<anydisabled>.
|
||||
|
||||
=item B<alldisabled ARRAY>
|
||||
|
||||
=item B<anydisabled ARRAY>
|
||||
|
||||
In an array context returns an array with each element set to 1 if the
|
||||
@@ -67,6 +68,7 @@ disabled.
|
||||
Returns an item from the %config hash in \$TOP/configdata.pm.
|
||||
|
||||
=item B<have_IPv4>
|
||||
|
||||
=item B<have_IPv6>
|
||||
|
||||
Return true if IPv4 / IPv6 is possible to use on the current system.
|
||||
@@ -225,7 +227,6 @@ sub have_IPv6 {
|
||||
return $have_IPv6;
|
||||
}
|
||||
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
L<OpenSSL::Test>
|
||||
|
||||
@@ -116,6 +116,7 @@ BIO_get_cipher_ctx define
|
||||
BIO_get_cipher_status define
|
||||
BIO_get_close define
|
||||
BIO_get_ktls_send define
|
||||
BIO_get_ktls_recv define
|
||||
BIO_get_conn_address define
|
||||
BIO_get_conn_hostname define
|
||||
BIO_get_conn_port define
|
||||
|
||||
Reference in New Issue
Block a user