Update crypt module: Fix for LibreSSL (#1439)

This commit is contained in:
culb
2017-12-02 18:28:02 -05:00
committed by Alexey Sokolov
parent 6689705756
commit 23c78dc318

View File

@@ -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.