summaryrefslogtreecommitdiff
path: root/src/openvpn/openssl_compat.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-29 14:11:02 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-29 14:11:02 +0200
commit64639e6dd78c89be61bbffeefcbd7a8d1e38178f (patch)
tree828e090fe91751afd157fb1ceb48c153dcb6568b /src/openvpn/openssl_compat.h
parent3408a277eb3293c0c29d50c66b42727ad31181aa (diff)
parent53de4f8356a1c5d5b2f0903499087adcc8854c57 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/openvpn/openssl_compat.h')
-rw-r--r--src/openvpn/openssl_compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h
index c3152d0..9f53069 100644
--- a/src/openvpn/openssl_compat.h
+++ b/src/openvpn/openssl_compat.h
@@ -672,14 +672,18 @@ SSL_CTX_get_min_proto_version(SSL_CTX *ctx)
{
return TLS1_VERSION;
}
+#ifdef SSL_OP_NO_TLSv1_1
if (!(sslopt & SSL_OP_NO_TLSv1_1))
{
return TLS1_1_VERSION;
}
+#endif
+#ifdef SSL_OP_NO_TLSv1_2
if (!(sslopt & SSL_OP_NO_TLSv1_2))
{
return TLS1_2_VERSION;
}
+#endif
return 0;
}
#endif /* SSL_CTX_get_min_proto_version */