mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-09-12 12:36:23 +00:00
fdf8393a2b
Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
21 lines
618 B
Diff
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
|