2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-12 12:36:23 +00:00
Files
xcat-dep/perl-Crypt-SSLeay/Crypt-SSLeay-0.72-openssl3-sslv3-method-compat.patch
T
2026-03-13 07:20:46 -03:00

21 lines
618 B
Diff

--- a/SSLeay.xs
+++ b/SSLeay.xs
@@ -149,14 +149,14 @@
if(ssl_version == 23) {
ctx = SSL_CTX_new(SSLv23_client_method());
}
else if(ssl_version == 3) {
- ctx = SSL_CTX_new(SSLv3_client_method());
+ ctx = SSL_CTX_new(TLS_client_method());
}
else {
#ifndef OPENSSL_NO_SSL2
/* v2 is the default */
ctx = SSL_CTX_new(SSLv2_client_method());
#else
/* v3 is the default */
- ctx = SSL_CTX_new(SSLv3_client_method());
+ ctx = SSL_CTX_new(TLS_client_method());
#endif
}
EOF