MXS-1400: Fix crash with OpenSSL 1.1
Added the missing parameter for the RSA key generation function.
This commit is contained in:
@ -223,7 +223,7 @@ RSA* create_rsa(int bits)
|
|||||||
BIGNUM* bn = BN_new();
|
BIGNUM* bn = BN_new();
|
||||||
BN_set_word(bn, RSA_F4);
|
BN_set_word(bn, RSA_F4);
|
||||||
RSA* rsa = RSA_new();
|
RSA* rsa = RSA_new();
|
||||||
RSA_generate_key_ex(rsa, bits, NULL, NULL);
|
RSA_generate_key_ex(rsa, bits, bn, NULL);
|
||||||
BN_free(bn);
|
BN_free(bn);
|
||||||
return rsa;
|
return rsa;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user