diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2002-07-29 13:31:44 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2002-07-29 13:31:44 +0000 |
commit | 77c46bbf2997e68e1974ed90bacdf236fedf1242 (patch) | |
tree | cd1a218ae24cb3a4807787c3bfb5d989524c9f8c /apps | |
parent | 02750ff56fa327ba1bc53f331628f6b29e611f96 (diff) |
Only use DSA-functions if available.
Submitted by: "Hellan,Kim KHE" <KHE@kmd.dk>
Reviewed by:
PR: 167
Diffstat (limited to 'apps')
-rw-r--r-- | apps/x509.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c index 23e9b6bfe1..dd98eb3b08 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -923,10 +923,14 @@ bad: BIO_printf(bio_err,"Generating certificate request\n"); +#ifndef OPENSSL_NO_DSA if (pk->type == EVP_PKEY_DSA) digest=EVP_dss1(); - else if (pk->type == EVP_PKEY_ECDSA) +#endif +#ifndef OPENSSL_NO_ECDSA + if (pk->type == EVP_PKEY_ECDSA) digest=EVP_ecdsa(); +#endif rq=X509_to_X509_REQ(x,pk,digest); EVP_PKEY_free(pk); |