From a8b7710800c05a8473727e257aae5fa2dad3e669 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 27 Nov 2014 09:35:24 +0100 Subject: [PATCH] Fix crash in CreateCert fixes #7862 --- lib/base/tlsutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/tlsutility.cpp b/lib/base/tlsutility.cpp index e2978aa12..b4d96ecfd 100644 --- a/lib/base/tlsutility.cpp +++ b/lib/base/tlsutility.cpp @@ -412,7 +412,7 @@ boost::shared_ptr 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(cert, X509_free); } -- 2.40.0