ports/net/znc/patches/patch-modules_crypt_cpp

16 lines
634 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
DH_set0_pqg() has been available since LibreSSL version 2.7. This version
won't compile with opaque DH in LibreSSL 3.5.
Index: modules/crypt.cpp
--- modules/crypt.cpp.orig
+++ modules/crypt.cpp
@@ -68,7 +68,7 @@ class CCryptMod : public CModule {
CString m_sPrivKey;
CString m_sPubKey;
-#if OPENSSL_VERSION_NUMBER < 0X10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER < 0X10100000L
static int DH_set0_pqg(DH* dh, BIGNUM* p, BIGNUM* q, BIGNUM* g) {
/* If the fields p and g in dh are nullptr, the corresponding input
* parameters MUST be non-nullptr. q may remain nullptr.