Fix crash in CreateCert

fixes #7862
This commit is contained in:
Gunnar Beutner 2014-11-27 09:35:24 +01:00
parent 358d91e912
commit a8b7710800
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ boost::shared_ptr<X509> CreateCert(EVP_PKEY *pubkey, X509_NAME *subject, X509_NA
X509_EXTENSION_free(ext);
}
X509_sign(cert, cakey, NULL);
X509_sign(cert, cakey, EVP_sha256());
return boost::shared_ptr<X509>(cert, X509_free);
}