summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-02 09:29:15 +0000
committerNils Larsch <nils@openssl.org>2005-04-02 09:29:15 +0000
commit12bdb643756d829569bb903e5b806613ff975ccb (patch)
tree8b3186d726311147bb078922ff64bece40dedd01 /apps
parent7bdf8eed69e190ce8f2869a8421aa710d6d07504 (diff)
downloadopenssl-new-12bdb643756d829569bb903e5b806613ff975ccb.tar.gz
use SHA-1 as the default digest for the apps/openssl commands
Diffstat (limited to 'apps')
-rw-r--r--apps/crl.c2
-rw-r--r--apps/openssl.cnf2
-rw-r--r--apps/req.c2
-rw-r--r--apps/x509.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/crl.c b/apps/crl.c
index 878f65468e..3eb676e16b 100644
--- a/apps/crl.c
+++ b/apps/crl.c
@@ -115,7 +115,7 @@ int MAIN(int argc, char **argv)
X509_OBJECT xobj;
EVP_PKEY *pkey;
int do_ver = 0;
- const EVP_MD *md_alg,*digest=EVP_md5();
+ const EVP_MD *md_alg,*digest=EVP_sha1();
apps_startup();
diff --git a/apps/openssl.cnf b/apps/openssl.cnf
index 6d731cbe8b..04710f87d5 100644
--- a/apps/openssl.cnf
+++ b/apps/openssl.cnf
@@ -67,7 +67,7 @@ cert_opt = ca_default # Certificate field options
default_days = 365 # how long to certify for
default_crl_days= 30 # how long before next CRL
-default_md = md5 # which md to use.
+default_md = sha1 # which md to use.
preserve = no # keep passed DN ordering
# A few difference way of specifying how similar the request should look
diff --git a/apps/req.c b/apps/req.c
index d634268653..f43c477f75 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -187,7 +187,7 @@ int MAIN(int argc, char **argv)
char *p;
char *subj = NULL;
int multirdn = 0;
- const EVP_MD *md_alg=NULL,*digest=EVP_md5();
+ const EVP_MD *md_alg=NULL,*digest=EVP_sha1();
unsigned long chtype = MBSTRING_ASC;
#ifndef MONOLITH
char *to_free;
diff --git a/apps/x509.c b/apps/x509.c
index 1dad6363de..9dc99dfa0f 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -184,7 +184,7 @@ int MAIN(int argc, char **argv)
X509_REQ *rq=NULL;
int fingerprint=0;
char buf[256];
- const EVP_MD *md_alg,*digest=EVP_md5();
+ const EVP_MD *md_alg,*digest=EVP_sha1();
CONF *extconf = NULL;
char *extsect = NULL, *extfile = NULL, *passin = NULL, *passargin = NULL;
int need_rand = 0;