提交 2bbe8f91 编写于 作者: D Dr. Stephen Henson

Use keyspec for DSA too.

上级 4be0a5d4
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册