Module: wine
Branch: master
Commit: a89db155d8aa9e70216ee8baae921deca653a8a0
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a89db155d8aa9e70216ee8b…
Author: James Hawkins <truiken(a)gmail.com>
Date: Wed Sep 13 17:11:24 2006 -0700
wintrust: Add a stub implementation of CryptCATOpen.
---
dlls/wintrust/Makefile.in | 1 +
dlls/wintrust/crypt.c | 40 ++++++++++++++++++++++++++++++++++++++++
dlls/wintrust/wintrust.spec | 2 +-
3 files changed, 42 insertions(+), 1 deletions(-)
diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in
index 92085f4..d547dc4 100644
--- a/dlls/wintrust/Makefile.in
+++ b/dlls/wintrust/Makefile.in
@@ -7,6 +7,7 @@ IMPORTLIB = libwintrust.$(IMPLIBEXT)
IMPORTS = crypt32 user32 advapi32 kernel32
C_SRCS = \
+ crypt.c \
register.c \
wintrust_main.c
diff --git a/dlls/wintrust/crypt.c b/dlls/wintrust/crypt.c
new file mode 100644
index 0000000..0e91263
--- /dev/null
+++ b/dlls/wintrust/crypt.c
@@ -0,0 +1,40 @@
+/*
+ * WinTrust Cryptography functions
+ *
+ * Copyright 2006 James Hawkins
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wintrust.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wintrust);
+
+/***********************************************************************
+ * CryptCATOpen (WINTRUST.@)
+ */
+HANDLE WINAPI CryptCATOpen(LPWSTR pwszFileName, DWORD fdwOpenFlags, HCRYPTPROV hProv,
+ DWORD dwPublicVersion, DWORD dwEncodingType)
+{
+ FIXME("(%s, %ld, %ld, %ld, %ld) stub\n", debugstr_w(pwszFileName), fdwOpenFlags,
+ hProv, dwPublicVersion, dwEncodingType);
+ return 0;
+}
diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec
index 5335605..eb3c9bb 100644
--- a/dlls/wintrust/wintrust.spec
+++ b/dlls/wintrust/wintrust.spec
@@ -26,7 +26,7 @@
@ stub CryptCATGetCatAttrInfo
@ stub CryptCATGetMemberInfo
@ stub CryptCATHandleFromStore
-@ stub CryptCATOpen
+@ stdcall CryptCATOpen(wstr long long long long)
@ stub CryptCATPersistStore
@ stub CryptCATPutAttrInfo
@ stub CryptCATPutCatAttrInfo