From 23c78dc318627ee7fd6b15fee74c926fce968cb7 Mon Sep 17 00:00:00 2001 From: culb Date: Sat, 2 Dec 2017 18:28:02 -0500 Subject: [PATCH] Update crypt module: Fix for LibreSSL (#1439) --- modules/crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/crypt.cpp b/modules/crypt.cpp index e342a139..1b90f851 100644 --- a/modules/crypt.cpp +++ b/modules/crypt.cpp @@ -68,7 +68,7 @@ class CCryptMod : public CModule { CString m_sPrivKey; CString m_sPubKey; -#if OPENSSL_VERSION_NUMBER < 0X10100000L +#if OPENSSL_VERSION_NUMBER < 0X10100000L || defined(LIBRESSL_VERSION_NUMBER) 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.