Allocate memory for RSA key

This commit is contained in:
Iwan Timmer 2017-06-11 12:45:12 +02:00
parent 637c4f6923
commit 1ed34ff95d

View File

@ -103,6 +103,9 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int years) {
} else { } else {
x = *x509p; x = *x509p;
} }
if ((rsa = RSA_new()) == NULL)
goto err;
BIGNUM* bne = BN_new(); BIGNUM* bne = BN_new();
if (bne == NULL) { if (bne == NULL) {