Signed-off-by: YeshunYe yeyeshun@uniontech.com
The flag CRYPT_VERIFYCONTEXT | CRYPT_NEWKEYSET is valid in Windows. Here is the test case: [testCPAcquireContext.cpp](/uploads/c3c4fea3046bb48cb7a284e0b568704e/testCPAcquireContext.cpp)
From: YeshunYe yeyeshun@uniontech.com
Signed-off-by: YeshunYe yeyeshun@uniontech.com --- dlls/dssenh/main.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/dssenh/main.c b/dlls/dssenh/main.c index 0dbb78ad708..6387eeb77b2 100644 --- a/dlls/dssenh/main.c +++ b/dlls/dssenh/main.c @@ -305,6 +305,7 @@ BOOL WINAPI CPAcquireContext( HCRYPTPROV *ret_prov, LPSTR container, DWORD flags
case CRYPT_VERIFYCONTEXT: case CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET: + case CRYPT_VERIFYCONTEXT | CRYPT_NEWKEYSET: ret = create_key_container( "", flags, vtable->dwProvType ); break;
Thanks, would you be able to add a test to dssenh/tests/dssenh.c? A single CryptAcquireContextA() call with those flags (and cleanup) would be sufficient.