summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tlscommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tlscommon.c b/tlscommon.c
index c0a6967..39eaf20 100644
--- a/tlscommon.c
+++ b/tlscommon.c
@@ -203,7 +203,8 @@ static SSL_CTX *tlscreatectx(uint8_t type, struct tls *conf) {
switch (type) {
#ifdef RADPROT_TLS
case RAD_TLS:
- ctx = SSL_CTX_new(TLSv1_method());
+ ctx = SSL_CTX_new(SSLv23_method());
+ SSL_CTX_set_options(ctx, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3);
#ifdef DEBUG
SSL_CTX_set_info_callback(ctx, ssl_info_callback);
#endif