$OpenBSD: patch-lib_os_io_c,v 1.1 2018/09/20 21:41:40 juanfra Exp $

Index: lib/os_io.c
--- lib/os_io.c.orig
+++ lib/os_io.c
@@ -4139,6 +4139,7 @@ ___SCMOBJ client_ca_path;)
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_TLSv1)));
         case 0x301:
+#ifndef LIBRESSL_VERSION_NUMBER
           OPENSSL_CHECK_ERROR ((SSL_OP_NO_SSLv3 &
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_SSLv3)));
@@ -4147,6 +4148,7 @@ ___SCMOBJ client_ca_path;)
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_SSLv2)));
         case 0x200:
+#endif
           break;
         default:
           return ___FIX(___TLS_WRONG_TLS_VERSION_ERR);
@@ -4365,6 +4367,7 @@ ___SCMOBJ client_ca_path;)
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_TLSv1)));
         case 0x301:
+#ifndef LIBRESSL_VERSION_NUMBER
           OPENSSL_CHECK_ERROR ((SSL_OP_NO_SSLv3 &
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_SSLv3)));
@@ -4373,6 +4376,7 @@ ___SCMOBJ client_ca_path;)
                                 SSL_CTX_set_options (c->tls_ctx,
                                                      SSL_OP_NO_SSLv2)));
         case 0x200:
+#endif
           break;
         default:
           ___release_rc_tls_context (c);
