| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/benchmarks/postal/files/ |
Upload File : |
--- basictcp.cpp.orig 2012-01-01 11:36:27 UTC
+++ basictcp.cpp
@@ -102,10 +102,18 @@ int base_tcp::ConnectTLS()
m_sslMeth = NULL;
m_sslCtx = NULL;
m_ssl = NULL;
- m_sslMeth = SSLv2_client_method();
+#ifndef OPENSSL_NO_SSL3
+ m_sslMeth = SSLv3_client_method();
+#else
+ m_sslMeth = SSLv23_client_method();
+#endif
if(m_sslMeth == NULL)
{
- fprintf(stderr, "Can't get SSLv2_client_method.\n");
+#ifndef OPENSSL_NO_SSL3
+ fprintf(stderr, "Can't get SSLv3_client_method.\n");
+#else
+ fprintf(stderr, "Can't get SSLv23_client_method.\n");
+#endif
return 2;
}
m_sslCtx = SSL_CTX_new(m_sslMeth);