Only use DSA-functions if available.
authorLutz Jänicke <jaenicke@openssl.org>
Mon, 29 Jul 2002 13:28:57 +0000 (13:28 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Mon, 29 Jul 2002 13:28:57 +0000 (13:28 +0000)
Submitted by: "Hellan,Kim KHE" <KHE@kmd.dk>
Reviewed by:
PR: 167

apps/x509.c

index dce5f32630671f624fce5d8c0a436fb8678e4b8f..a797da0ffada7c546527dc01fecd4e990974e32c 100644 (file)
@@ -915,8 +915,10 @@ bad:
 
                                BIO_printf(bio_err,"Generating certificate request\n");
 
+#ifndef OPENSSL_NO_DSA
                                if (pk->type == EVP_PKEY_DSA)
                                        digest=EVP_dss1();
+#endif
 
                                rq=X509_to_X509_REQ(x,pk,digest);
                                EVP_PKEY_free(pk);