David Hedberg : crypt32: Add BCryptEnumAlgorithms stub.

Alexandre Julliard julliard at winehq.org
Mon May 30 12:41:18 CDT 2011


Module: wine
Branch: master
Commit: 66db40e89190e970e599aafcc2c682d030924f9b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=66db40e89190e970e599aafcc2c682d030924f9b

Author: David Hedberg <dhedberg at codeweavers.com>
Date:   Mon May 30 12:45:30 2011 +0200

crypt32: Add BCryptEnumAlgorithms stub.

---

 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 */




More information about the wine-cvs mailing list