summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/apps/req.c
diff options
context:
space:
mode:
authorbeck <>2001-06-22 00:03:44 +0000
committerbeck <>2001-06-22 00:03:44 +0000
commit38b6ff9e5294811c57541ad47940f8f8f41dc114 (patch)
tree402699541cee3cf3f2943b0384dbda7de534de70 /src/lib/libssl/src/apps/req.c
parentafae624d63e4e717c5bae8c7842a4712309f728f (diff)
downloadopenbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.gz
openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.bz2
openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.zip
openssl-engine-0.9.6a merge
Diffstat (limited to 'src/lib/libssl/src/apps/req.c')
-rw-r--r--src/lib/libssl/src/apps/req.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libssl/src/apps/req.c b/src/lib/libssl/src/apps/req.c
index 0751d92201..ca8dc87957 100644
--- a/src/lib/libssl/src/apps/req.c
+++ b/src/lib/libssl/src/apps/req.c
@@ -725,16 +725,15 @@ loop:
725 725
726 if (newreq || x509) 726 if (newreq || x509)
727 { 727 {
728#ifndef NO_DSA
729 if (pkey->type == EVP_PKEY_DSA)
730 digest=EVP_dss1();
731#endif
732
733 if (pkey == NULL) 728 if (pkey == NULL)
734 { 729 {
735 BIO_printf(bio_err,"you need to specify a private key\n"); 730 BIO_printf(bio_err,"you need to specify a private key\n");
736 goto end; 731 goto end;
737 } 732 }
733#ifndef NO_DSA
734 if (pkey->type == EVP_PKEY_DSA)
735 digest=EVP_dss1();
736#endif
738 if (req == NULL) 737 if (req == NULL)
739 { 738 {
740 req=X509_REQ_new(); 739 req=X509_REQ_new();