Commit eaa37e3e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

pkzdrav_sign_hack (eterbug #15523)

parent 7a62e1a5
......@@ -447,6 +447,9 @@ BOOL WINAPI CryptSignMessage(PCRYPT_SIGN_MESSAGE_PARA pSignPara,
signer.cUnauthAttr = pSignPara->cUnauthAttr;
signer.rgUnauthAttr = pSignPara->rgUnauthAttr;
if (!strcmp(signer.HashAlgorithm.pszObjId, "1.2.643.100.113.1"))
signer.HashAlgorithm.pszObjId = (LPSTR)"1.2.643.7.1.1.3.2";
memset(&signInfo, 0, sizeof(signInfo));
signInfo.cbSize = sizeof(signInfo);
signInfo.cSigners = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment