diff options
author | Bruce Yinhe <[email protected]> | 2014-07-07 16:00:13 +0200 |
---|---|---|
committer | Bruce Yinhe <[email protected]> | 2014-07-07 16:00:13 +0200 |
commit | 775b00119581cda9262db486df61a35521efa9d1 (patch) | |
tree | a9a5dcfab416a083bd8f9751cbefce56213079cc /lib/ssl/test | |
parent | 8b06c7885aa8c564fd48dcc7817fe174497d9510 (diff) | |
parent | a801af8e99b847bc4bd00bf8ba76a638ff90768f (diff) | |
download | otp-775b00119581cda9262db486df61a35521efa9d1.tar.gz otp-775b00119581cda9262db486df61a35521efa9d1.tar.bz2 otp-775b00119581cda9262db486df61a35521efa9d1.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/test')
-rw-r--r-- | lib/ssl/test/ssl_handshake_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_handshake_SUITE.erl b/lib/ssl/test/ssl_handshake_SUITE.erl index 5f36842f9e..e5e942ce1b 100644 --- a/lib/ssl/test/ssl_handshake_SUITE.erl +++ b/lib/ssl/test/ssl_handshake_SUITE.erl @@ -38,6 +38,7 @@ all() -> [decode_hello_handshake, decode_supported_elliptic_curves_hello_extension_correctly, decode_unknown_hello_extension_correctly, encode_single_hello_sni_extension_correctly, + decode_single_hello_sni_extension_correctly, select_proper_tls_1_2_rsa_default_hashsign]. %%-------------------------------------------------------------------- @@ -98,6 +99,13 @@ encode_single_hello_sni_extension_correctly(_Config) -> Encoded = ssl_handshake:encode_hello_extensions(Exts), HelloExt = Encoded. +decode_single_hello_sni_extension_correctly(_Config) -> + Exts = #hello_extensions{sni = #sni{hostname = "test.com"}}, + SNI = <<16#00, 16#00, 16#00, 16#0d, 16#00, 16#0b, 16#00, 16#00, 16#08, + $t, $e, $s, $t, $., $c, $o, $m>>, + Decoded = ssl_handshake:decode_hello_extensions(SNI), + Exts = Decoded. + select_proper_tls_1_2_rsa_default_hashsign(_Config) -> % RFC 5246 section 7.4.1.4.1 tells to use {sha1,rsa} as default signature_algorithm for RSA key exchanges {sha, rsa} = ssl_handshake:select_hashsign_algs(undefined, ?rsaEncryption, {3,3}), |