From: Richard Levitte Date: Wed, 21 Mar 2001 14:18:06 +0000 (+0000) Subject: Change from main development line, 2001-03-20 16:36 levitte X-Git-Tag: OpenSSL_0_9_6a-beta2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1d86084647a973e76ee2305211750620771f2e7;p=oweals%2Fopenssl.git Change from main development line, 2001-03-20 16:36 levitte avoid linking problems when OpenSSL is built with no-dsa. Spotted by Hellan,Kim KHE --- diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 93ad9a45b8..a4e1f6c864 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -588,8 +588,10 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) pp=NULL; } +#ifndef NO_DSA if (si->pkey->type == EVP_PKEY_DSA) ctx_tmp.digest=EVP_dss1(); +#endif if (!EVP_SignFinal(&ctx_tmp,(unsigned char *)buf->data, (unsigned int *)&buf->length,si->pkey)) @@ -788,7 +790,9 @@ for (ii=0; iitype == EVP_PKEY_DSA) mdc_tmp.digest=EVP_dss1(); +#endif i=EVP_VerifyFinal(&mdc_tmp,os->data,os->length, pkey); EVP_PKEY_free(pkey);