mssign32: add stub dll

Austin English austinenglish at gmail.com
Wed Jan 28 19:11:11 CST 2009


Needed for bug 16796.

-- 
-Austin
-------------- next part --------------
From 4e74cc984371b1c3c45071f0a2008c0c8f432c7d Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Tue, 20 Jan 2009 20:03:45 -0600
Subject: [PATCH] mssign32: add stub dll

diff --git a/configure.ac b/configure.ac
index 72f93b7..e5a4622 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1972,6 +1972,7 @@ WINE_CONFIG_MAKEFILE([dlls/msisip/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL
 WINE_CONFIG_MAKEFILE([dlls/msisys.ocx/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/msnet32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/msrle32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/mssign32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/mssip32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/mstask/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/mstask/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
diff --git a/dlls/mssign32/Makefile.in b/dlls/mssign32/Makefile.in
new file mode 100644
index 0000000..0579acf
--- /dev/null
+++ b/dlls/mssign32/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = mssign32.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	mssign32_main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/mssign32/mssign32.spec b/dlls/mssign32/mssign32.spec
new file mode 100644
index 0000000..752413c
--- /dev/null
+++ b/dlls/mssign32/mssign32.spec
@@ -0,0 +1,30 @@
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
+@ stub FreeCryptProvFromCert
+@ stub GetCryptProvFromCert
+@ stub PvkFreeCryptProv
+@ stub PvkGetCryptProv
+@ stub PvkPrivateKeyAcquireContext
+@ stub PvkPrivateKeyAcquireContextA
+@ stub PvkPrivateKeyAcquireContextFromMemory
+@ stub PvkPrivateKeyAcquireContextFromMemoryA
+@ stub PvkPrivateKeyLoad
+@ stub PvkPrivateKeyLoadA
+@ stub PvkPrivateKeyLoadFromMemory
+@ stub PvkPrivateKeyLoadFromMemoryA
+@ stub PvkPrivateKeyReleaseContext
+@ stub PvkPrivateKeyReleaseContextA
+@ stub PvkPrivateKeySave
+@ stub PvkPrivateKeySaveA
+@ stub PvkPrivateKeySaveToMemory
+@ stub PvkPrivateKeySaveToMemoryA
+@ stub SignError
+@ stub SignerAddTimeStampResponse
+@ stub SignerAddTimeStampResponseEx
+@ stub SignerCreateTimeStampRequest
+@ stub SignerFreeSignerContext
+@ stub SignerSign
+@ stub SignerSignEx
+@ stub SignerTimeStamp
+@ stub SignerTimeStampEx
+@ stub SpcGetCertFromKey
diff --git a/dlls/mssign32/mssign32_main.c b/dlls/mssign32/mssign32_main.c
new file mode 100644
index 0000000..e591917
--- /dev/null
+++ b/dlls/mssign32/mssign32_main.c
@@ -0,0 +1,44 @@
+/*
+ * MSSIGN32 implementation
+ *
+ * Copyright 2009 Austin English
+ *
+ * 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 "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(mssign32);
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv )
+{
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls( hinst );
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
-- 
1.5.6.3


More information about the wine-patches mailing list