diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-08-15 10:50:28 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-08-15 10:50:28 +0000 |
commit | 745565c69fc49d15fb4a73645de4895dc6c30221 (patch) | |
tree | c64132c824be4f8091e4c5be2e4283a82a4c7a79 /demos/x509 | |
parent | fbc4a24633bf2e36044fe3ebe39c2ae20812acac (diff) |
Use SHA1 and not deprecated MD5 in demos.
Diffstat (limited to 'demos/x509')
-rw-r--r-- | demos/x509/mkcert.c | 2 | ||||
-rw-r--r-- | demos/x509/mkreq.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |