CVS commit: [netbsd-10] src/external/bsd/libevent/dist

2023-11-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov  3 09:53:05 UTC 2023

Modified Files:
src/external/bsd/libevent/dist [netbsd-10]: openssl-compat.h

Log Message:
Pull up following revision(s) (requested by rin in ticket #449):

external/bsd/libevent/dist/openssl-compat.h: revision 1.2

Cherry-pick upstream fix for LibreSSL. NFC for us at the moment.

https://github.com/libevent/libevent/commit/883630f76cbf512003b81de25cd96cb75c6cf0f9

 Don't define BIO_get_init() for LibreSSL 3.5+
 BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type
 will become opaque, so the existing macro will break the build.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.6.1 \
src/external/bsd/libevent/dist/openssl-compat.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libevent/dist/openssl-compat.h
diff -u src/external/bsd/libevent/dist/openssl-compat.h:1.1.1.2 src/external/bsd/libevent/dist/openssl-compat.h:1.1.1.2.6.1
--- src/external/bsd/libevent/dist/openssl-compat.h:1.1.1.2	Wed Apr  7 02:43:14 2021
+++ src/external/bsd/libevent/dist/openssl-compat.h	Fri Nov  3 09:53:05 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: openssl-compat.h,v 1.1.1.2 2021/04/07 02:43:14 christos Exp $	*/
+/*	$NetBSD: openssl-compat.h,v 1.1.1.2.6.1 2023/11/03 09:53:05 martin Exp $	*/
 #ifndef OPENSSL_COMPAT_H
 #define OPENSSL_COMPAT_H
 
@@ -41,7 +41,8 @@ static inline BIO_METHOD *BIO_meth_new(i
 #endif /* (OPENSSL_VERSION_NUMBER < 0x1010L) || \
 	(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070L) */
 
-#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070L
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070L && \
+	LIBRESSL_VERSION_NUMBER < 0x3050L
 #define BIO_get_init(b) (b)->init
 #endif
 



CVS commit: [netbsd-10] src/external/bsd/libevent/dist

2023-11-03 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov  3 09:53:05 UTC 2023

Modified Files:
src/external/bsd/libevent/dist [netbsd-10]: openssl-compat.h

Log Message:
Pull up following revision(s) (requested by rin in ticket #449):

external/bsd/libevent/dist/openssl-compat.h: revision 1.2

Cherry-pick upstream fix for LibreSSL. NFC for us at the moment.

https://github.com/libevent/libevent/commit/883630f76cbf512003b81de25cd96cb75c6cf0f9

 Don't define BIO_get_init() for LibreSSL 3.5+
 BIO_get_init() is available in LibreSSL 3.5 and later. The BIO type
 will become opaque, so the existing macro will break the build.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.6.1 \
src/external/bsd/libevent/dist/openssl-compat.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.