diff options
author | Matt Caswell <matt@openssl.org> | 2015-04-24 15:05:27 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-05-16 09:20:52 +0100 |
commit | d45ba43dab962bdc84158efc0cdddd5f5a08cf5e (patch) | |
tree | e79e390a6badf2ba24c3c973cbc62d7e65b14e4b /ssl/t1_clnt.c | |
parent | a27e81ee54112d8db40e409f45f1e9b88ccbf6b1 (diff) |
Updates following review comments
Miscellaneous updates following review comments on the version negotiation
rewrite patches.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'ssl/t1_clnt.c')
-rw-r--r-- | ssl/t1_clnt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ssl/t1_clnt.c b/ssl/t1_clnt.c index 7ead372bc3..be9759ae93 100644 --- a/ssl/t1_clnt.c +++ b/ssl/t1_clnt.c @@ -67,13 +67,17 @@ static const SSL_METHOD *tls1_get_client_method(int ver); static const SSL_METHOD *tls1_get_client_method(int ver) { if (ver == TLS_ANY_VERSION) - return TLS_server_method(); + return TLS_client_method(); if (ver == TLS1_2_VERSION) return TLSv1_2_client_method(); if (ver == TLS1_1_VERSION) return TLSv1_1_client_method(); if (ver == TLS1_VERSION) return TLSv1_client_method(); +#ifndef OPENSSL_NO_SSL3 + if (ver == SSL3_VERSION) + return (SSLv3_client_method()); +#endif return NULL; } |