Use SHA1 and not deprecated MD5 in demos.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 15 Aug 2009 11:01:09 +0000 (11:01 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 15 Aug 2009 11:01:09 +0000 (11:01 +0000)
demos/x509/mkcert.c
demos/x509/mkreq.c

index c5e67b8..6a52e5d 100644 (file)
@@ -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;
index 3dfc65f..d17e4ad 100644 (file)
@@ -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;