LibreSSL has had the ALPN interfaces since 2014 unless you're
unfortunate enough to have to use python.

Other versions likely need this as well.

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/python/2.7/Makefile,v
retrieving revision 1.51
diff -u -p -r1.51 Makefile
--- Makefile    4 May 2017 15:20:24 -0000       1.51
+++ Makefile    2 Jun 2017 13:47:52 -0000
@@ -7,7 +7,7 @@
 
 VERSION =              2.7
 PATCHLEVEL =           .13
-REVISION =             1
+REVISION =             2
 SHARED_LIBS =          python2.7 0.0
 VERSION_SPEC =         >=2.7,<2.8
 
Index: patches/patch-Modules__ssl_c
===================================================================
RCS file: patches/patch-Modules__ssl_c
diff -N patches/patch-Modules__ssl_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-Modules__ssl_c        2 Jun 2017 13:51:36 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: Modules/_ssl.c
+--- Modules/_ssl.c.orig
++++ Modules/_ssl.c
+@@ -118,7 +118,7 @@ struct py_ssl_library_code {
+ #endif
+ 
+ /* ALPN added in OpenSSL 1.0.2 */
+-#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 
0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(OPENSSL_NO_TLSEXT)
+ # define HAVE_ALPN
+ #endif
+ 

Reply via email to