$OpenBSD: patch-src_main_tls_c,v 1.5 2018/04/19 20:48:31 sthen Exp $

Index: src/main/tls.c
--- src/main/tls.c.orig
+++ src/main/tls.c
@@ -3015,7 +3015,7 @@ post_ca:
 			return NULL;
 		}
 
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* ok for libressl */
 		if (!SSL_CTX_set_max_proto_version(ctx, max_version)) {
 			ERROR("Failed setting TLS maximum version");
 			return NULL;
@@ -3035,7 +3035,7 @@ post_ca:
 #ifdef SSL_OP_NO_TLSv1
 	if (conf->disable_tlsv1) {
 		ctx_options |= SSL_OP_NO_TLSv1;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* ok for libressl */
 		WARN("Please use tls_min_version and tls_max_version instead of disable_tlsv1");
 #endif
 	}
@@ -3045,7 +3045,7 @@ post_ca:
 #ifdef SSL_OP_NO_TLSv1_1
 	if (conf->disable_tlsv1_1) {
 		ctx_options |= SSL_OP_NO_TLSv1_1;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* ok for libressl */
 		WARN("Please use tls_min_version and tls_max_version instead of disable_tlsv1_2");
 #endif
 	}
@@ -3056,7 +3056,7 @@ post_ca:
 
 	if (conf->disable_tlsv1_2) {
 		ctx_options |= SSL_OP_NO_TLSv1_2;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* ok for libressl */
 		WARN("Please use tls_min_version and tls_max_version instead of disable_tlsv1_2");
 #endif
 	}
