This commit is contained in:
Günter Obiltschnig
2018-03-05 22:15:39 +01:00
parent c5acb2ac27
commit 451f05121e
2 changed files with 39 additions and 39 deletions

View File

@@ -103,7 +103,7 @@ public:
PROTO_TLSV1_2 = 0x10
};
struct Params
struct NetSSL_API Params
{
Params();
/// Initializes the struct with default values.

View File

@@ -511,7 +511,7 @@ void Context::initDH(const std::string& dhParamsFile)
std::string msg = Utility::getLastError();
throw SSLContextException("Error creating Diffie-Hellman parameters", msg);
}
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
BIGNUM* p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), 0);
BIGNUM* g = BN_bin2bn(dh1024_g, sizeof(dh1024_g), 0);
DH_set0_pqg(dh, p, 0, g);