summaryrefslogtreecommitdiffstats
path: root/apps/ca.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-01-17 14:14:41 +0000
committerBen Laurie <ben@openssl.org>1999-01-17 14:14:41 +0000
commit512d22283093a86c6fe36dffff7da50ffc4203a7 (patch)
tree2bb54d1a7d933a46d6f8edae79460cd7db5cb0f1 /apps/ca.c
parent2c1ef383aef7dd7bb419dfcc5554b42facff707e (diff)
Remove pointless MD5 hash.
Contributed by: Anonymous <nobody@replay.com>
Diffstat (limited to 'apps/ca.c')
-rw-r--r--apps/ca.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/ca.c b/apps/ca.c
index 7a14285397..1ea90aa96a 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1023,11 +1023,15 @@ bad:
}
}
else
- dgst=EVP_md5();
+ {
#ifndef NO_DSA
- if (pkey->type == EVP_PKEY_DSA)
- dgst = EVP_dss1() ;
+ if (pkey->type == EVP_PKEY_DSA)
+ dgst=EVP_dss1();
+ else
#endif
+ dgst=EVP_md5();
+ }
+
if (!X509_CRL_sign(crl,pkey,dgst)) goto err;
PEM_write_bio_X509_CRL(Sout,crl);