Merge pull request #1828 from vishwin/master

DH_set0_pqg and DH_get0_key have existed since LibreSSL 2.7
This commit is contained in:
Alexey Sokolov
2022-03-14 23:39:37 +00:00
committed by GitHub
+2 -1
View File
@@ -68,7 +68,8 @@ class CCryptMod : public CModule {
CString m_sPrivKey;
CString m_sPubKey;
#if OPENSSL_VERSION_NUMBER < 0X10100000L || defined(LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0X10100000L || \
(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x02070000fL)
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.