]> granicus.if.org Git - icinga2/commitdiff
Fix crash in CreateCert
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Nov 2014 08:35:24 +0000 (09:35 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 27 Nov 2014 08:35:24 +0000 (09:35 +0100)
fixes #7862

lib/base/tlsutility.cpp

index e2978aa12dd6f80f5cda22a597af1d2ac4cccb5d..b4d96ecfd55fcd39998c5d5b90f231d11dd54ce9 100644 (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);
 }