diff options
author | Gaurav Malhotra <malhotrag@gmail.com> | 2018-06-29 17:47:51 +0530 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-06-29 22:54:53 +0200 |
commit | 09a72f5dd5e24ec6e802f596db0967f7bb863703 (patch) | |
tree | 6c1e48c18e2bea0cb369b9c64ed2bbf5a60c1bf8 /lib | |
parent | 6015cefb1b2cfde4b4850121c42405275e5e77d9 (diff) |
openssl: Remove some dead code
Closes #2698
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/openssl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index fc2e4ac08..0b1929bd7 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2314,11 +2314,6 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) switch(ssl_version) { case CURL_SSLVERSION_SSLv3: -#ifdef USE_TLS_SRP - if(ssl_authtype == CURL_TLSAUTH_SRP) { - infof(data, "Set version TLSv1.x for SRP authorisation\n"); - } -#endif ctx_options |= SSL_OP_NO_SSLv2; ctx_options |= SSL_OP_NO_TLSv1; #if OPENSSL_VERSION_NUMBER >= 0x1000100FL @@ -2346,7 +2341,6 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) break; case CURL_SSLVERSION_SSLv2: -#ifndef OPENSSL_NO_SSL2 ctx_options |= SSL_OP_NO_SSLv3; ctx_options |= SSL_OP_NO_TLSv1; #if OPENSSL_VERSION_NUMBER >= 0x1000100FL @@ -2357,10 +2351,6 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) #endif #endif break; -#else - failf(data, OSSL_PACKAGE " was built without SSLv2 support"); - return CURLE_NOT_BUILT_IN; -#endif default: failf(data, "Unrecognized parameter passed via CURLOPT_SSLVERSION"); |