crypt32: Add BCryptEnumAlgorithms stub.
David Hedberg
dhedberg at codeweavers.com
Mon May 30 05:45:30 CDT 2011
---
dlls/bcrypt/bcrypt.spec | 2 +-
dlls/bcrypt/bcrypt_main.c | 12 ++++++++++++
include/bcrypt.h | 7 +++++++
3 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/bcrypt/bcrypt.spec b/dlls/bcrypt/bcrypt.spec
index 7d85e12..e1ffb8a 100644
--- a/dlls/bcrypt/bcrypt.spec
+++ b/dlls/bcrypt/bcrypt.spec
@@ -14,7 +14,7 @@
@ stub BCryptDuplicateHash
@ stub BCryptDuplicateKey
@ stub BCryptEncrypt
-@ stub BCryptEnumAlgorithms
+@ stdcall BCryptEnumAlgorithms(long ptr ptr long)
@ stub BCryptEnumContextFunctionProviders
@ stub BCryptEnumContextFunctions
@ stub BCryptEnumContexts
diff --git a/dlls/bcrypt/bcrypt_main.c b/dlls/bcrypt/bcrypt_main.c
index abe9750..441b3ef 100644
--- a/dlls/bcrypt/bcrypt_main.c
+++ b/dlls/bcrypt/bcrypt_main.c
@@ -22,6 +22,7 @@
#include "wine/debug.h"
#include "winbase.h"
+#include "bcrypt.h"
WINE_DEFAULT_DEBUG_CHANNEL(bcrypt);
@@ -38,3 +39,14 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
return TRUE;
}
+
+NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
+ BCRYPT_ALGORITHM_IDENTIFIER **ppAlgList, ULONG dwFlags)
+{
+ FIXME("%08x, %p, %p, %08x - stub\n", dwAlgOperations, pAlgCount, ppAlgList, dwFlags);
+
+ *ppAlgList=NULL;
+ *pAlgCount=0;
+
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
diff --git a/include/bcrypt.h b/include/bcrypt.h
index a3d7fe0..43d1f94 100644
--- a/include/bcrypt.h
+++ b/include/bcrypt.h
@@ -40,4 +40,11 @@
typedef LONG NTSTATUS;
#endif
+typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
+{
+ LPWSTR pszName;
+ ULONG dwClass;
+ ULONG dwFlags;
+} BCRYPT_ALGORITHM_IDENTIFIER;
+
#endif /* __WINE_BCRYPT_H */
--
1.7.5.rc3
More information about the wine-patches
mailing list