Maarten Lankhorst : cryptdlg: Add initial stub dll.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 08:50:54 CST 2008


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

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sun Feb 17 18:20:32 2008 -0800

cryptdlg: Add initial stub dll.

---

 Makefile.in                 |    2 +
 configure                   |    3 ++
 configure.ac                |    1 +
 dlls/Makefile.in            |    1 +
 dlls/cryptdlg/Makefile.in   |   13 ++++++++++++
 dlls/cryptdlg/cryptdlg.spec |   21 +++++++++++++++++++
 dlls/cryptdlg/main.c        |   46 +++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 87 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 4b4fcf1..c7a5306 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -188,6 +188,7 @@ ALL_MAKEFILES = \
 	dlls/crtdll/Makefile \
 	dlls/crypt32/Makefile \
 	dlls/crypt32/tests/Makefile \
+	dlls/cryptdlg/Makefile \
 	dlls/cryptdll/Makefile \
 	dlls/cryptnet/Makefile \
 	dlls/cryptnet/tests/Makefile \
@@ -579,6 +580,7 @@ dlls/credui/tests/Makefile: dlls/credui/tests/Makefile.in dlls/Maketest.rules
 dlls/crtdll/Makefile: dlls/crtdll/Makefile.in dlls/Makedll.rules
 dlls/crypt32/Makefile: dlls/crypt32/Makefile.in dlls/Makedll.rules
 dlls/crypt32/tests/Makefile: dlls/crypt32/tests/Makefile.in dlls/Maketest.rules
+dlls/cryptdlg/Makefile: dlls/cryptdlg/Makefile.in dlls/Makedll.rules
 dlls/cryptdll/Makefile: dlls/cryptdll/Makefile.in dlls/Makedll.rules
 dlls/cryptnet/Makefile: dlls/cryptnet/Makefile.in dlls/Makedll.rules
 dlls/cryptnet/tests/Makefile: dlls/cryptnet/tests/Makefile.in dlls/Maketest.rules
diff --git a/configure b/configure
index 0eb274a..758a851 100755
--- a/configure
+++ b/configure
@@ -21227,6 +21227,8 @@ ac_config_files="$ac_config_files dlls/crypt32/Makefile"
 
 ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
 
+ac_config_files="$ac_config_files dlls/cryptdlg/Makefile"
+
 ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
 
 ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
@@ -22515,6 +22517,7 @@ do
     "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
     "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
     "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
+    "dlls/cryptdlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdlg/Makefile" ;;
     "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
     "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
     "dlls/cryptnet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/tests/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index a9252e0..bb8aac4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1687,6 +1687,7 @@ AC_CONFIG_FILES([dlls/credui/tests/Makefile])
 AC_CONFIG_FILES([dlls/crtdll/Makefile])
 AC_CONFIG_FILES([dlls/crypt32/Makefile])
 AC_CONFIG_FILES([dlls/crypt32/tests/Makefile])
+AC_CONFIG_FILES([dlls/cryptdlg/Makefile])
 AC_CONFIG_FILES([dlls/cryptdll/Makefile])
 AC_CONFIG_FILES([dlls/cryptnet/Makefile])
 AC_CONFIG_FILES([dlls/cryptnet/tests/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index d29aafb..6577b2a 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -38,6 +38,7 @@ BASEDIRS = \
 	credui \
 	crtdll \
 	crypt32 \
+	cryptdlg \
 	cryptdll \
 	cryptnet \
 	ctapi32 \
diff --git a/dlls/cryptdlg/Makefile.in b/dlls/cryptdlg/Makefile.in
new file mode 100644
index 0000000..9c93630
--- /dev/null
+++ b/dlls/cryptdlg/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = cryptdlg.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/cryptdlg/cryptdlg.spec b/dlls/cryptdlg/cryptdlg.spec
new file mode 100644
index 0000000..1b80d40
--- /dev/null
+++ b/dlls/cryptdlg/cryptdlg.spec
@@ -0,0 +1,21 @@
+1 stub CertConfigureTrustA
+2 stub CertConfigureTrustW
+3 stub CertTrustCertPolicy
+4 stub CertTrustCleanup
+5 stub CertTrustFinalPolicy
+6 stub CertTrustInit
+7 stub DecodeAttrSequence
+8 stub DecodeRecipientID
+9 stub EncodeAttrSequence
+10 stub EncodeRecipientID
+11 stub FormatPKIXEmailProtection
+12 stub FormatVerisignExtension
+13 stub CertModifyCertificatesToTrust
+14 stub CertSelectCertificateA
+15 stub CertSelectCertificateW
+16 stub CertViewPropertiesA
+17 stub CertViewPropertiesW
+18 stub DllRegisterServer
+19 stub DllUnregisterServer
+20 stub GetFriendlyNameOfCertA
+21 stub GetFriendlyNameOfCertW
diff --git a/dlls/cryptdlg/main.c b/dlls/cryptdlg/main.c
new file mode 100644
index 0000000..eec0fa0
--- /dev/null
+++ b/dlls/cryptdlg/main.c
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2008 Maarten Lankhorst
+ *
+ * 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(cryptdlg);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+    switch (fdwReason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hinstDLL);
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+        default:
+            break;
+    }
+    return TRUE;
+}




More information about the wine-cvs mailing list