#1601 Fixed compatibility with OpenSSL 1.0.x.
This commit is contained in:
parent
1b875fdabb
commit
50eb7ba2fd
2 changed files with 15 additions and 1 deletions
|
@ -34,6 +34,20 @@
|
|||
#include <openssl/err.h>
|
||||
|
||||
|
||||
// https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes#Compatibility_Layer
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
|
||||
{
|
||||
assert(q == nullptr);
|
||||
|
||||
dh->p = p;
|
||||
dh->g = g;
|
||||
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue