// SSL version which can be used to the SSL version used for client hello message.
// For example will prevent comunnicating with a tls1.0 server if the
// client sent and tlsv1.2 Hello message.
- //SSL_set_ssl_method(ssl, Ssl::method(features.toSquidSSLVersion()));
+ //SSL_set_ssl_method(ssl, Ssl::clientMethod(features.toSquidSSLVersion()));
#if defined(TLSEXT_NAMETYPE_host_name)
if (!serverName.isEmpty()) {
SSL_set_tlsext_host_name(ssl, serverName.c_str());
#else
const SSL_METHOD *
#endif
-Ssl::method(int version)
+Ssl::clientMethod(int version)
{
switch (version) {
ssl_initialize();
- if (!(method = Ssl::method(version)))
+ if (!(method = Ssl::clientMethod(version)))
return NULL;
sslContext = SSL_CTX_new(method);
int OpenSSLtoSquidSSLVersion(int sslVersion);
-#if OPENSSL_VERSION_NUMBER < 0x00909000L
-SSL_METHOD *method(int version);
-#else
-const SSL_METHOD *method(int version);
+#if OPENSSL_VERSION_NUMBER >= 0x00909000L
+const
#endif
+SSL_METHOD *clientMethod(int version);
const SSL_METHOD *serverMethod(int version);