37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
|
--- ./modules/ssl/ssl_private.h.orig
|
||
|
+++ ./modules/ssl/ssl_private.h
|
||
|
@@ -123,6 +123,16 @@
|
||
|
#define MODSSL_SSL_METHOD_CONST
|
||
|
#endif
|
||
|
|
||
|
+#if defined(LIBRESSL_VERSION_NUMBER)
|
||
|
+/* Missing from LibreSSL */
|
||
|
+#define SSL_CTRL_SET_MIN_PROTO_VERSION 123
|
||
|
+#define SSL_CTRL_SET_MAX_PROTO_VERSION 124
|
||
|
+#define SSL_CTX_set_min_proto_version(ctx, version) \
|
||
|
+ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
|
||
|
+#define SSL_CTX_set_max_proto_version(ctx, version) \
|
||
|
+ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
|
||
|
+#endif
|
||
|
+
|
||
|
#if defined(OPENSSL_FIPS)
|
||
|
#define HAVE_FIPS
|
||
|
#endif
|
||
|
--- ./support/ab.c.orig
|
||
|
+++ ./support/ab.c
|
||
|
@@ -197,6 +197,14 @@
|
||
|
#if !defined(OPENSSL_NO_TLSEXT) && defined(SSL_set_tlsext_host_name)
|
||
|
#define HAVE_TLSEXT
|
||
|
#endif
|
||
|
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2060000f
|
||
|
+# define SSL_CTRL_SET_MIN_PROTO_VERSION 123
|
||
|
+# define SSL_CTRL_SET_MAX_PROTO_VERSION 124
|
||
|
+#define SSL_CTX_set_min_proto_version(ctx, version) \
|
||
|
+ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)
|
||
|
+#define SSL_CTX_set_max_proto_version(ctx, version) \
|
||
|
+ SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)
|
||
|
+#endif
|
||
|
#endif
|
||
|
|
||
|
#include <math.h>
|