mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:48:36 +00:00
rsaenh: Validate pbData in CPSetKeyParam().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
parent
5f984f8ce3
commit
4ff40a6708
|
@ -3822,6 +3822,12 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (!pbData)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (dwParam) {
|
||||
case KP_PADDING:
|
||||
/* The MS providers only support PKCS5_PADDING */
|
||||
|
|
Loading…
Reference in a new issue