Alex Henrie : bcrypt: Add stub for BCryptOpenAlgorithmProvider.
Alexandre Julliard
julliard at winehq.org
Thu May 1 14:40:01 CDT 2014
Module: wine
Branch: master
Commit: d5f18414174d93474680743fb555b3ad80de6c8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5f18414174d93474680743fb555b3ad80de6c8d
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Tue Apr 29 20:24:58 2014 -0600
bcrypt: Add stub for BCryptOpenAlgorithmProvider.
---
dlls/bcrypt/bcrypt.spec | 2 +-
dlls/bcrypt/bcrypt_main.c | 13 +++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/dlls/bcrypt/bcrypt.spec b/dlls/bcrypt/bcrypt.spec
index 87623f8..185f950 100644
--- a/dlls/bcrypt/bcrypt.spec
+++ b/dlls/bcrypt/bcrypt.spec
@@ -32,7 +32,7 @@
@ stub BCryptHashData
@ stub BCryptImportKey
@ stub BCryptImportKeyPair
-@ stub BCryptOpenAlgorithmProvider
+@ stdcall BCryptOpenAlgorithmProvider(ptr wstr wstr long)
@ stub BCryptQueryContextConfiguration
@ stub BCryptQueryContextFunctionConfiguration
@ stub BCryptQueryContextFunctionProperty
diff --git a/dlls/bcrypt/bcrypt_main.c b/dlls/bcrypt/bcrypt_main.c
index 22da0dd..fcad58c 100644
--- a/dlls/bcrypt/bcrypt_main.c
+++ b/dlls/bcrypt/bcrypt_main.c
@@ -91,3 +91,16 @@ NTSTATUS WINAPI BCryptGenRandom(BCRYPT_ALG_HANDLE algorithm, UCHAR *buffer, ULON
FIXME("called with unsupported parameters, returning error\n");
return STATUS_NOT_IMPLEMENTED;
}
+
+NTSTATUS WINAPI BCryptOpenAlgorithmProvider(BCRYPT_ALG_HANDLE *algorithm, LPCWSTR algorithmId,
+ LPCWSTR implementation, DWORD flags)
+{
+ FIXME("%p, %s, %s, %08x - stub\n", algorithm, wine_dbgstr_w(algorithmId), wine_dbgstr_w(implementation), flags);
+
+ if (!algorithm)
+ return STATUS_INVALID_PARAMETER;
+
+ *algorithm = NULL;
+
+ return STATUS_NOT_IMPLEMENTED;
+}
More information about the wine-cvs
mailing list