From: Dr. Stephen Henson Date: Sat, 15 Aug 2009 11:01:09 +0000 (+0000) Subject: Use SHA1 and not deprecated MD5 in demos. X-Git-Tag: OpenSSL-fips-2_0-rc1~1562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98c08a6312efe7037d6dde336909d2e0c1920f66;p=openssl Use SHA1 and not deprecated MD5 in demos. --- diff --git a/demos/x509/mkcert.c b/demos/x509/mkcert.c index c5e67b8e28..6a52e5d0fc 100644 --- a/demos/x509/mkcert.c +++ b/demos/x509/mkcert.c @@ -136,7 +136,7 @@ int mkcert(X509 **x509p, EVP_PKEY **pkeyp, int bits, int serial, int days) } #endif - if (!X509_sign(x,pk,EVP_md5())) + if (!X509_sign(x,pk,EVP_sha1())) goto err; *x509p=x; diff --git a/demos/x509/mkreq.c b/demos/x509/mkreq.c index 3dfc65f164..d17e4ade94 100644 --- a/demos/x509/mkreq.c +++ b/demos/x509/mkreq.c @@ -134,7 +134,7 @@ int mkreq(X509_REQ **req, EVP_PKEY **pkeyp, int bits, int serial, int days) #endif - if (!X509_REQ_sign(x,pk,EVP_md5())) + if (!X509_REQ_sign(x,pk,EVP_sha1())) goto err; *req=x;