diff options
author | Matt Caswell <matt@openssl.org> | 2015-03-27 23:01:51 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-05-16 09:19:56 +0100 |
commit | 32ec41539b5b23bc42503589fcc5be65d648d1f5 (patch) | |
tree | 340cc1e0e9d83d0db3af099741fed33f94ce89df /util | |
parent | 756eff7a31b5b46577e8529645b254ccc256a8ae (diff) |
Server side version negotiation rewrite
This commit changes the way that we do server side protocol version
negotiation. Previously we had a whole set of code that had an "up front"
state machine dedicated to the negotiating the protocol version. This adds
significant complexity to the state machine. Historically the justification
for doing this was the support of SSLv2 which works quite differently to
SSLv3+. However, we have now removed support for SSLv2 so there is little
reason to maintain this complexity.
The one slight difficulty is that, although we no longer support SSLv2, we
do still support an SSLv3+ ClientHello in an SSLv2 backward compatible
ClientHello format. This is generally only used by legacy clients. This
commit adds support within the SSLv3 code for these legacy format
ClientHellos.
Server side version negotiation now works in much the same was as DTLS,
i.e. we introduce the concept of TLS_ANY_VERSION. If s->version is set to
that then when a ClientHello is received it will work out the most
appropriate version to respond with. Also, SSLv23_method and
SSLv23_server_method have been replaced with TLS_method and
TLS_server_method respectively. The old SSLv23* names still exist as
macros pointing at the new name, although they are deprecated.
Subsequent commits will look at client side version negotiation, as well of
removal of the old s23* code.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/ssleay.num | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/ssleay.num b/util/ssleay.num index 7fb0714c9e..d0b41915b3 100755 --- a/util/ssleay.num +++ b/util/ssleay.num @@ -96,8 +96,8 @@ SSL_use_certificate_file 107 EXIST::FUNCTION:STDIO SSL_write 108 EXIST::FUNCTION: SSLeay_add_ssl_algorithms 109 NOEXIST::FUNCTION: SSLv23_client_method 110 EXIST::FUNCTION:RSA -SSLv23_method 111 EXIST::FUNCTION:RSA -SSLv23_server_method 112 EXIST::FUNCTION:RSA +SSLv23_method 111 NOEXIST::FUNCTION: +SSLv23_server_method 112 NOEXIST::FUNCTION: SSLv2_client_method 113 NOEXIST::FUNCTION: SSLv2_method 114 NOEXIST::FUNCTION: SSLv2_server_method 115 NOEXIST::FUNCTION: @@ -396,3 +396,5 @@ SSL_set_rbio 430 EXIST::FUNCTION: SSL_CIPHER_get_digest_nid 431 EXIST::FUNCTION: SSL_CIPHER_get_cipher_nid 432 EXIST::FUNCTION: SSL_use_certificate_chain_file 433 EXIST::FUNCTION:STDIO +TLS_server_method 434 EXIST::FUNCTION: +TLS_method 435 EXIST::FUNCTION: |