projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix pem/err ordering.
[openssl.git]
/
apps
/
ca.c
diff --git
a/apps/ca.c
b/apps/ca.c
index 8990aa20a7d9358912e594af1213ab8e8b272e87..67b7561c4fecefb4bd89def93a343e584dceba20 100644
(file)
--- a/
apps/ca.c
+++ b/
apps/ca.c
@@
-1012,7
+1012,7
@@
bad:
r->sequence=i;
}
r->sequence=i;
}
- /* we
h
ow have a CRL */
+ /* we
n
ow have a CRL */
if (verbose) BIO_printf(bio_err,"signing CRL\n");
if (md != NULL)
{
if (verbose) BIO_printf(bio_err,"signing CRL\n");
if (md != NULL)
{
@@
-1024,6
+1024,10
@@
bad:
}
else
dgst=EVP_md5();
}
else
dgst=EVP_md5();
+#ifndef NO_DSA
+ if (pkey->type == EVP_PKEY_DSA)
+ dgst = EVP_dss1() ;
+#endif
if (!X509_CRL_sign(crl,pkey,dgst)) goto err;
PEM_write_bio_X509_CRL(Sout,crl);
if (!X509_CRL_sign(crl,pkey,dgst)) goto err;
PEM_write_bio_X509_CRL(Sout,crl);