[icinga-checkins] icinga.org: icinga2/support/2.2: Fix crash in CreateCert

git at icinga.org git at icinga.org
Thu Nov 27 09:54:55 CET 2014


Module: icinga2
Branch: support/2.2
Commit: bd2861ba4a056d89755d1327a3d130cf523b726d
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=bd2861ba4a056d89755d1327a3d130cf523b726d

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Nov 27 09:35:24 2014 +0100

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 e2978aa..b4d96ec 100644
--- a/lib/base/tlsutility.cpp
+++ b/lib/base/tlsutility.cpp
@@ -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);
 }



More information about the icinga-checkins mailing list