MXS-1400: Fix crash with OpenSSL 1.1

Added the missing parameter for the RSA key generation function.
This commit is contained in:
Markus Mäkelä 2017-09-08 22:44:57 +03:00
parent 9ceb23dd65
commit 81202eac89

View File

@ -223,7 +223,7 @@ RSA* create_rsa(int bits)
BIGNUM* bn = BN_new();
BN_set_word(bn, RSA_F4);
RSA* rsa = RSA_new();
RSA_generate_key_ex(rsa, bits, NULL, NULL);
RSA_generate_key_ex(rsa, bits, bn, NULL);
BN_free(bn);
return rsa;
#else