Karsten Elfenbein : rsaenh:
Fix the case when CPGetHashParam should return the size of the HASHVAL.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jul 26 04:22:49 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: dd6598b834d6e9f113f3c58dd84e778ae5583d4b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=dd6598b834d6e9f113f3c58dd84e778ae5583d4b
Author: Karsten Elfenbein <kelfe at gmx.de>
Date: Tue Jul 25 20:59:12 2006 +0200
rsaenh: Fix the case when CPGetHashParam should return the size of the HASHVAL.
---
dlls/rsaenh/rsaenh.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 7c9dcfb..d42face 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -2567,7 +2567,12 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPT
return tls1_prf(hProv, pCryptHash->hKey, &pCryptHash->tpPRFParams.blobLabel,
&pCryptHash->tpPRFParams.blobSeed, pbData, *pdwDataLen);
}
-
+
+ if ( pbData == NULL ) {
+ *pdwDataLen = pCryptHash->dwHashSize;
+ return TRUE;
+ }
+
if (pCryptHash->dwState == RSAENH_HASHSTATE_IDLE) {
SetLastError(NTE_BAD_HASH_STATE);
return FALSE;
More information about the wine-cvs
mailing list