ports/www/apache-httpd/patches/patch-modules_ssl_ssl_private_h

16 lines
682 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: modules/ssl/ssl_private.h
--- modules/ssl/ssl_private.h.orig
+++ modules/ssl/ssl_private.h
@@ -232,9 +232,11 @@
#define BN_get_rfc3526_prime_4096 get_rfc3526_prime_4096
#define BN_get_rfc3526_prime_6144 get_rfc3526_prime_6144
#define BN_get_rfc3526_prime_8192 get_rfc3526_prime_8192
+#if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL
#define BIO_set_init(x,v) (x->init=v)
#define BIO_get_data(x) (x->ptr)
#define BIO_set_data(x,v) (x->ptr=v)
+#endif
#define BIO_get_shutdown(x) (x->shutdown)
#define BIO_set_shutdown(x,v) (x->shutdown=v)
#define DH_bits(x) (BN_num_bits(x->p))