rsaenh: Empty container names are allowed for CRYPT_VERIFYCONTEXT contexts.
This commit is contained in:
parent
fa6b64d6fc
commit
749a7adaf4
|
@ -1583,8 +1583,8 @@ BOOL WINAPI RSAENH_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
|
|||
|
||||
case CRYPT_VERIFYCONTEXT|CRYPT_NEWKEYSET:
|
||||
case CRYPT_VERIFYCONTEXT:
|
||||
if (pszContainer) {
|
||||
TRACE("pszContainer should be NULL\n");
|
||||
if (pszContainer && *pszContainer) {
|
||||
TRACE("pszContainer should be empty\n");
|
||||
SetLastError(NTE_BAD_FLAGS);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue