diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/test/cms-test.pl | 4 | ||||
| -rw-r--r-- | src/lib/libssl/test/testssl | 17 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/libssl/test/cms-test.pl b/src/lib/libssl/test/cms-test.pl index c938bcf00d..dfef799be2 100644 --- a/src/lib/libssl/test/cms-test.pl +++ b/src/lib/libssl/test/cms-test.pl | |||
| @@ -415,8 +415,10 @@ sub run_smime_tests { | |||
| 415 | } | 415 | } |
| 416 | 416 | ||
| 417 | sub cmp_files { | 417 | sub cmp_files { |
| 418 | use FileHandle; | ||
| 418 | my ( $f1, $f2 ) = @_; | 419 | my ( $f1, $f2 ) = @_; |
| 419 | my ( $fp1, $fp2 ); | 420 | my $fp1 = FileHandle->new(); |
| 421 | my $fp2 = FileHandle->new(); | ||
| 420 | 422 | ||
| 421 | my ( $rd1, $rd2 ); | 423 | my ( $rd1, $rd2 ); |
| 422 | 424 | ||
diff --git a/src/lib/libssl/test/testssl b/src/lib/libssl/test/testssl index 5ae4dc8720..4e8542b556 100644 --- a/src/lib/libssl/test/testssl +++ b/src/lib/libssl/test/testssl | |||
| @@ -119,6 +119,23 @@ $ssltest -bio_pair -server_auth -client_auth $CA $extra || exit 1 | |||
| 119 | echo test sslv2/sslv3 with both client and server authentication via BIO pair and app verify | 119 | echo test sslv2/sslv3 with both client and server authentication via BIO pair and app verify |
| 120 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 | 120 | $ssltest -bio_pair -server_auth -client_auth -app_verify $CA $extra || exit 1 |
| 121 | 121 | ||
| 122 | echo "Testing ciphersuites" | ||
| 123 | for protocol in TLSv1.2 SSLv3; do | ||
| 124 | echo "Testing ciphersuites for $protocol" | ||
| 125 | for cipher in `../util/shlib_wrap.sh ../apps/openssl ciphers "RSA+$protocol" | tr ':' ' '`; do | ||
| 126 | echo "Testing $cipher" | ||
| 127 | prot="" | ||
| 128 | if [ $protocol = "SSLv3" ] ; then | ||
| 129 | prot="-ssl3" | ||
| 130 | fi | ||
| 131 | $ssltest -cipher $cipher $prot | ||
| 132 | if [ $? -ne 0 ] ; then | ||
| 133 | echo "Failed $cipher" | ||
| 134 | exit 1 | ||
| 135 | fi | ||
| 136 | done | ||
| 137 | done | ||
| 138 | |||
| 122 | ############################################################################# | 139 | ############################################################################# |
| 123 | 140 | ||
| 124 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then | 141 | if ../util/shlib_wrap.sh ../apps/openssl no-dh; then |
