mirror of
https://github.com/reactos/reactos.git
synced 2025-05-24 03:24:45 +00:00
[RSAENH] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67392
This commit is contained in:
parent
c92559c27c
commit
ae20e73806
2 changed files with 9 additions and 5 deletions
|
@ -3466,6 +3466,8 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
|
||||||
switch (pCryptKey->aiAlgid) {
|
switch (pCryptKey->aiAlgid) {
|
||||||
case CALG_RC2:
|
case CALG_RC2:
|
||||||
case CALG_RC4:
|
case CALG_RC4:
|
||||||
|
{
|
||||||
|
KEYCONTAINER *pKeyContainer = get_key_container(pCryptKey->hProv);
|
||||||
if (!pbData)
|
if (!pbData)
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
@ -3478,11 +3480,13 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
|
||||||
pbData, 11);
|
pbData, 11);
|
||||||
pCryptKey->dwSaltLen = 11;
|
pCryptKey->dwSaltLen = 11;
|
||||||
setup_key(pCryptKey);
|
setup_key(pCryptKey);
|
||||||
/* Strange but true: salt length reset to 0 after setting
|
/* After setting the salt value if the provider is not base or
|
||||||
* it via KP_SALT.
|
* strong the salt length will be reset. */
|
||||||
*/
|
if (pKeyContainer->dwPersonality != RSAENH_PERSONALITY_BASE &&
|
||||||
pCryptKey->dwSaltLen = 0;
|
pKeyContainer->dwPersonality != RSAENH_PERSONALITY_STRONG)
|
||||||
|
pCryptKey->dwSaltLen = 0;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
SetLastError(NTE_BAD_KEY);
|
SetLastError(NTE_BAD_KEY);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -168,7 +168,7 @@ reactos/dll/win32/riched20 # Synced to WineStaging-1.7.37
|
||||||
reactos/dll/win32/riched32 # Synced to Wine-1.7.27
|
reactos/dll/win32/riched32 # Synced to Wine-1.7.27
|
||||||
reactos/dll/win32/rpcrt4 # Synced to Wine-1.7.17
|
reactos/dll/win32/rpcrt4 # Synced to Wine-1.7.17
|
||||||
reactos/dll/win32/rsabase # Synced to Wine-1.7.27
|
reactos/dll/win32/rsabase # Synced to Wine-1.7.27
|
||||||
reactos/dll/win32/rsaenh # Synced to Wine-1.7.27
|
reactos/dll/win32/rsaenh # Synced to WineStaging-1.7.37
|
||||||
reactos/dll/win32/sccbase # Synced to Wine-1.7.27
|
reactos/dll/win32/sccbase # Synced to Wine-1.7.27
|
||||||
reactos/dll/win32/schannel # Synced to Wine-1.7.27
|
reactos/dll/win32/schannel # Synced to Wine-1.7.27
|
||||||
reactos/dll/win32/scrrun # Synced to Wine-1.7.27
|
reactos/dll/win32/scrrun # Synced to Wine-1.7.27
|
||||||
|
|
Loading…
Reference in a new issue