rsaenh: Empty container names are allowed for CRYPT_VERIFYCONTEXT contexts.

This commit is contained in:
Juan Lang 2007-11-27 14:38:08 -08:00 committed by Alexandre Julliard
parent fa6b64d6fc
commit 749a7adaf4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}