$OpenBSD: patch-src_SWIG__ssl_i,v 1.1 2021/07/24 20:02:04 sthen Exp $

Fix build with LibreSSL

Index: src/SWIG/_ssl.i
--- src/SWIG/_ssl.i.orig
+++ src/SWIG/_ssl.i
@@ -265,7 +265,7 @@ void ssl_init(PyObject *ssl_err, PyObject *ssl_timeout
 }
 
 const SSL_METHOD *tlsv1_method(void) {
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
     PyErr_WarnEx(PyExc_DeprecationWarning,
                  "Function TLSv1_method has been deprecated.", 1);
 #endif
