From: Dr. Stephen Henson Date: Sun, 1 Jun 2008 23:28:17 +0000 (+0000) Subject: Use keyspec for DSA too. X-Git-Tag: OpenSSL_0_9_8k^2~359 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2bbe8f9129e3c1299e463aaf9accd7c771adcea9;p=oweals%2Fopenssl.git Use keyspec for DSA too. --- diff --git a/engines/e_capi.c b/engines/e_capi.c index c6821ebc6a..f14a71341e 100644 --- a/engines/e_capi.c +++ b/engines/e_capi.c @@ -855,7 +855,7 @@ static DSA_SIG *capi_dsa_do_sign(const unsigned char *digest, int dlen, /* Finally sign it */ slen = sizeof(csigbuf); - if(!CryptSignHash(hash, AT_SIGNATURE, NULL, 0, csigbuf, &slen)) + if(!CryptSignHash(hash, capi_key->keyspec, NULL, 0, csigbuf, &slen)) { CAPIerr(CAPI_F_CAPI_DSA_DO_SIGN, CAPI_R_ERROR_SIGNING_HASH); capi_addlasterror();