Only use DSA-functions if available.
Submitted by: "Hellan,Kim KHE" <KHE@kmd.dk> Reviewed by: PR: 167
This commit is contained in:
parent
93d1969c78
commit
72a37c03be
1 changed files with 2 additions and 0 deletions
|
@ -915,8 +915,10 @@ bad:
|
||||||
|
|
||||||
BIO_printf(bio_err,"Generating certificate request\n");
|
BIO_printf(bio_err,"Generating certificate request\n");
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_DSA
|
||||||
if (pk->type == EVP_PKEY_DSA)
|
if (pk->type == EVP_PKEY_DSA)
|
||||||
digest=EVP_dss1();
|
digest=EVP_dss1();
|
||||||
|
#endif
|
||||||
|
|
||||||
rq=X509_to_X509_REQ(x,pk,digest);
|
rq=X509_to_X509_REQ(x,pk,digest);
|
||||||
EVP_PKEY_free(pk);
|
EVP_PKEY_free(pk);
|
||||||
|
|
Loading…
Reference in a new issue