]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove unused OpenSSLtoSquidSSLVersion
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 30 Jun 2015 10:45:22 +0000 (03:45 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 30 Jun 2015 10:45:22 +0000 (03:45 -0700)
src/ssl/support.cc
src/ssl/support.h

index aab44000f374e29004185b32d5c207fe40f28a53..5db288cdf1af12c07d779843a2353b9bcf7e27cb 100644 (file)
@@ -772,24 +772,6 @@ sslCreateServerContext(AnyP::PortCfg &port)
     return sslContext;
 }
 
-int Ssl::OpenSSLtoSquidSSLVersion(int sslVersion)
-{
-    if (sslVersion == SSL2_VERSION)
-        return 2;
-    else if (sslVersion == SSL3_VERSION)
-        return 3;
-    else if (sslVersion == TLS1_VERSION)
-        return 4;
-#if OPENSSL_VERSION_NUMBER >= 0x10001000L
-    else if (sslVersion == TLS1_1_VERSION)
-        return 5;
-    else if (sslVersion == TLS1_2_VERSION)
-        return 6;
-#endif
-    else
-        return 1;
-}
-
 #if defined(TLSEXT_TYPE_next_proto_neg)
 //Dummy next_proto_neg callback
 static int
index 681e0da4dcf445f24e4cc466ed1e2ccf93b96cac..fe70c16582770e7015758aa99dc3425860eebe28 100644 (file)
@@ -276,8 +276,6 @@ int asn1timeToString(ASN1_TIME *tm, char *buf, int len);
 */
 bool setClientSNI(SSL *ssl, const char *fqdn);
 
-int OpenSSLtoSquidSSLVersion(int sslVersion);
-
 /**
    \ingroup ServerProtocolSSLAPI
    * Initializes the shared session cache if configured