Juan Lang : wintrust: Add stubs for SPC_LINK and SPC_PE_IMAGE encoding/ decoding.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 13 06:31:23 CDT 2007


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

Author: Juan Lang <juan.lang at gmail.com>
Date:   Fri Aug 10 10:56:25 2007 -0700

wintrust: Add stubs for SPC_LINK and SPC_PE_IMAGE encoding/decoding.

---

 dlls/wintrust/Makefile.in   |    1 +
 dlls/wintrust/asn.c         |   69 +++++++++++++++++++++++++++++++++++++++++++
 dlls/wintrust/wintrust.spec |    8 ++--
 3 files changed, 74 insertions(+), 4 deletions(-)

diff --git a/dlls/wintrust/Makefile.in b/dlls/wintrust/Makefile.in
index 720cd33..b6e547d 100644
--- a/dlls/wintrust/Makefile.in
+++ b/dlls/wintrust/Makefile.in
@@ -8,6 +8,7 @@ IMPORTS   = crypt32 user32 advapi32 kernel32
 DELAYIMPORTS = imagehlp
 
 C_SRCS = \
+	asn.c \
 	crypt.c \
 	register.c \
 	wintrust_main.c
diff --git a/dlls/wintrust/asn.c b/dlls/wintrust/asn.c
new file mode 100644
index 0000000..7acba64
--- /dev/null
+++ b/dlls/wintrust/asn.c
@@ -0,0 +1,69 @@
+/* wintrust asn functions
+ *
+ * Copyright 2007 Juan Lang
+ *
+ * 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>
+#define NONAMELESSUNION
+#include "windef.h"
+#include "winbase.h"
+#include "winerror.h"
+#include "wincrypt.h"
+#include "wintrust.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(cryptasn);
+
+BOOL WINAPI WVTAsn1SpcLinkEncode(DWORD dwCertEncodingType,
+ LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
+ DWORD *pcbEncoded)
+{
+    FIXME("(0x%08x, %s, %p, %p, %p)\n", dwCertEncodingType,
+     debugstr_a(lpszStructType), pvStructInfo, pbEncoded,
+     pcbEncoded);
+    return FALSE;
+}
+
+BOOL WINAPI WVTAsn1SpcPeImageDataEncode(DWORD dwCertEncodingType,
+ LPCSTR lpszStructType, const void *pvStructInfo, BYTE *pbEncoded,
+ DWORD *pcbEncoded)
+{
+    FIXME("(0x%08x, %s, %p, %p, %p)\n", dwCertEncodingType,
+     debugstr_a(lpszStructType), pvStructInfo, pbEncoded,
+     pcbEncoded);
+    return FALSE;
+}
+
+BOOL WINAPI WVTAsn1SpcLinkDecode(DWORD dwCertEncodingType,
+ LPCSTR lpszStructType, const BYTE *pbEncoded, DWORD cbEncoded, DWORD dwFlags,
+ void *pvStructInfo, DWORD *pcbStructInfo)
+{
+    FIXME("(0x%08x, %s, %p, %d, 0x%08x, %p, %p)\n", dwCertEncodingType,
+     debugstr_a(lpszStructType), pbEncoded, cbEncoded, dwFlags,
+     pvStructInfo, pcbStructInfo);
+    return FALSE;
+}
+
+BOOL WINAPI WVTAsn1SpcPeImageDataDecode(DWORD dwCertEncodingType,
+ LPCSTR lpszStructType, const BYTE *pbEncoded, DWORD cbEncoded, DWORD dwFlags,
+ void *pvStructInfo, DWORD *pcbStructInfo)
+{
+    FIXME("(0x%08x, %s, %p, %d, 0x%08x, %p, %p)\n", dwCertEncodingType,
+     debugstr_a(lpszStructType), pbEncoded, cbEncoded, dwFlags,
+     pvStructInfo, pcbStructInfo);
+    return FALSE;
+}
diff --git a/dlls/wintrust/wintrust.spec b/dlls/wintrust/wintrust.spec
index ba02687..7e31548 100644
--- a/dlls/wintrust/wintrust.spec
+++ b/dlls/wintrust/wintrust.spec
@@ -94,12 +94,12 @@
 @ stub WVTAsn1SpcFinancialCriteriaInfoEncode
 @ stub WVTAsn1SpcIndirectDataContentDecode
 @ stub WVTAsn1SpcIndirectDataContentEncode
-@ stub WVTAsn1SpcLinkDecode
-@ stub WVTAsn1SpcLinkEncode
+@ stdcall WVTAsn1SpcLinkDecode(long str ptr long long ptr ptr)
+@ stdcall WVTAsn1SpcLinkEncode(long str ptr ptr ptr)
 @ stub WVTAsn1SpcMinimalCriteriaInfoDecode
 @ stub WVTAsn1SpcMinimalCriteriaInfoEncode
-@ stub WVTAsn1SpcPeImageDataDecode
-@ stub WVTAsn1SpcPeImageDataEncode
+@ stdcall WVTAsn1SpcPeImageDataDecode(long str ptr long long ptr ptr)
+@ stdcall WVTAsn1SpcPeImageDataEncode(long str ptr ptr ptr)
 @ stub WVTAsn1SpcSigInfoDecode
 @ stub WVTAsn1SpcSigInfoEncode
 @ stub WVTAsn1SpcSpAgencyInfoDecode




More information about the wine-cvs mailing list