diff options
author | Richard Levitte <levitte@openssl.org> | 2001-03-20 15:36:59 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-03-20 15:36:59 +0000 |
commit | 271da5a2e01430ee44baf0d067a9befffa4faa14 (patch) | |
tree | 46cab52490607bc0f2bd3c52d37bb607358ae0a2 /crypto/pkcs7 | |
parent | 26fbabf3d1c52c1e275faa5ae5c9c72b7b0bc0b4 (diff) |
avoid linking problems when OpenSSL is built with no-dsa. Spotted by Hellan,Kim KHE <khe@kmd.dk>
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/pk7_doit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 84dbd4a9a4..d0f3ed0411 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -580,8 +580,10 @@ int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) OPENSSL_free(abuf); } +#ifndef OPENSSL_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)) @@ -769,7 +771,9 @@ for (ii=0; ii<md_len; ii++) printf("%02X",md_dat[ii]); printf(" calc\n"); ret = -1; goto err; } +#ifndef OPENSSL_NO_DSA if(pkey->type == EVP_PKEY_DSA) mdc_tmp.digest=EVP_dss1(); +#endif i=EVP_VerifyFinal(&mdc_tmp,os->data,os->length, pkey); EVP_PKEY_free(pkey); |