diff options
author | Julien Barbot <[email protected]> | 2013-10-29 22:29:01 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-11-06 11:12:11 +0100 |
commit | bc8b6bf58c96f8d5a07146ddea145f71fe8c8956 (patch) | |
tree | f5d365f8f8ceba7d84b56a50d7a5f9cf06b53d74 /lib/ssl/src/ssl_handshake.hrl | |
parent | 0b13c6cbfff58f928778428deb6862a7744416bb (diff) | |
download | otp-bc8b6bf58c96f8d5a07146ddea145f71fe8c8956.tar.gz otp-bc8b6bf58c96f8d5a07146ddea145f71fe8c8956.tar.bz2 otp-bc8b6bf58c96f8d5a07146ddea145f71fe8c8956.zip |
Add SSL Server Name Indication (SNI) client support
See RFC 6066 section 3
Diffstat (limited to 'lib/ssl/src/ssl_handshake.hrl')
-rw-r--r-- | lib/ssl/src/ssl_handshake.hrl | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/ssl/src/ssl_handshake.hrl b/lib/ssl/src/ssl_handshake.hrl index f25b0df806..75160526b9 100644 --- a/lib/ssl/src/ssl_handshake.hrl +++ b/lib/ssl/src/ssl_handshake.hrl @@ -98,7 +98,8 @@ next_protocol_negotiation = undefined, % [binary()] srp, ec_point_formats, - elliptic_curves + elliptic_curves, + sni }). -record(server_hello, { @@ -339,6 +340,19 @@ -define(NAMED_CURVE, 3). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Server name indication RFC 6066 section 3 +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +-define(SNI_EXT, 16#0000). + +%% enum { host_name(0), (255) } NameType; +-define(SNI_NAMETYPE_HOST_NAME, 0). + +-record(sni, { + hostname = undefined + }). + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Dialyzer types %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -353,6 +367,3 @@ -endif. % -ifdef(ssl_handshake). - - - |