Commit dd6598b8 authored by Karsten Elfenbein's avatar Karsten Elfenbein Committed by Alexandre Julliard

rsaenh: Fix the case when CPGetHashParam should return the size of the HASHVAL.

parent bf1ad6c3
...@@ -2567,7 +2567,12 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa ...@@ -2567,7 +2567,12 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
return tls1_prf(hProv, pCryptHash->hKey, &pCryptHash->tpPRFParams.blobLabel, return tls1_prf(hProv, pCryptHash->hKey, &pCryptHash->tpPRFParams.blobLabel,
&pCryptHash->tpPRFParams.blobSeed, pbData, *pdwDataLen); &pCryptHash->tpPRFParams.blobSeed, pbData, *pdwDataLen);
} }
if ( pbData == NULL ) {
*pdwDataLen = pCryptHash->dwHashSize;
return TRUE;
}
if (pCryptHash->dwState == RSAENH_HASHSTATE_IDLE) { if (pCryptHash->dwState == RSAENH_HASHSTATE_IDLE) {
SetLastError(NTE_BAD_HASH_STATE); SetLastError(NTE_BAD_HASH_STATE);
return FALSE; return FALSE;
......
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