Signed-off-by: Joseph Kogut joseph.kogut@gmail.com --- dlls/ncrypt/main.c | 7 +++++++ dlls/ncrypt/ncrypt.spec | 2 +- include/ncrypt.h | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/dlls/ncrypt/main.c b/dlls/ncrypt/main.c index c2dd8c0d71..1e8fe93244 100644 --- a/dlls/ncrypt/main.c +++ b/dlls/ncrypt/main.c @@ -76,6 +76,13 @@ SECURITY_STATUS WINAPI NCryptEnumAlgorithms(NCRYPT_PROV_HANDLE provider, DWORD a return NTE_NOT_SUPPORTED; }
+SECURITY_STATUS WINAPI NCryptEnumKeys(NCRYPT_PROV_HANDLE provider, const WCHAR *scope, + NCryptKeyName **key_name, PVOID *enum_state, DWORD flags) +{ + FIXME("(0x%lx, %p, %p, %p, 0x%08x): stub\n", provider, scope, key_name, enum_state, flags); + return NTE_NOT_SUPPORTED; +} + SECURITY_STATUS WINAPI NCryptFinalizeKey(NCRYPT_KEY_HANDLE key, DWORD flags) { FIXME("(0x%lx, 0x%08x): stub\n", key, flags); diff --git a/dlls/ncrypt/ncrypt.spec b/dlls/ncrypt/ncrypt.spec index c94a17d1b2..d4482d5b40 100644 --- a/dlls/ncrypt/ncrypt.spec +++ b/dlls/ncrypt/ncrypt.spec @@ -68,7 +68,7 @@ @ stub NCryptDuplicateKeyProtectorHandle @ stdcall NCryptEncrypt(long ptr long ptr ptr long ptr long) @ stdcall NCryptEnumAlgorithms(long long ptr ptr long) -@ stub NCryptEnumKeys +@ stdcall NCryptEnumKeys(long wstr ptr ptr long) @ stub NCryptEnumStorageProviders @ stub NCryptExportKey @ stdcall NCryptFinalizeKey(long long) diff --git a/include/ncrypt.h b/include/ncrypt.h index cf4442ccd8..9712f2f521 100644 --- a/include/ncrypt.h +++ b/include/ncrypt.h @@ -39,6 +39,13 @@ typedef struct _NCryptAlgorithmName { DWORD dwFlags; } NCryptAlgorithmName;
+typedef struct NCryptKeyName { + LPWSTR pszName; + LPWSTR pszAlgid; + DWORD dwLegacyKeySpec; + DWORD dwFlags; +} NCryptKeyName; + typedef ULONG_PTR NCRYPT_HANDLE; typedef ULONG_PTR NCRYPT_PROV_HANDLE; typedef ULONG_PTR NCRYPT_KEY_HANDLE;