schannel: Add new schannel dll that mostly forwards to secur32.

Robert Shearman rob at codeweavers.com
Thu Mar 1 06:17:59 CST 2007


---
  dlls/schannel/Makefile.in     |   13 +++++++++++++
  dlls/schannel/schannel.spec   |   37 +++++++++++++++++++++++++++++++++++++
  dlls/schannel/schannel_main.c |   40 
++++++++++++++++++++++++++++++++++++++++
  3 files changed, 90 insertions(+), 0 deletions(-)

tools/make_makefiles needs to be run after applying this patch.
-------------- next part --------------
diff --git a/dlls/schannel/Makefile.in b/dlls/schannel/Makefile.in
new file mode 100644
index 0000000..c4ecba4
--- /dev/null
+++ b/dlls/schannel/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = schannel.dll
+IMPORTS   = secur32 kernel32
+
+C_SRCS = \
+	schannel_main.c
+
+ at MAKE_DLL_RULES@
+
+### Dependencies:
diff --git a/dlls/schannel/schannel.spec b/dlls/schannel/schannel.spec
new file mode 100644
index 0000000..7dd12fa
--- /dev/null
+++ b/dlls/schannel/schannel.spec
@@ -0,0 +1,37 @@
+@ stdcall AcceptSecurityContext(ptr ptr ptr long long ptr ptr ptr ptr) secur32.AcceptSecurityContext
+@ stdcall AcquireCredentialsHandleA(str str long ptr ptr ptr ptr ptr ptr) secur32.AcquireCredentialsHandleA
+@ stdcall AcquireCredentialsHandleW(wstr wstr long ptr ptr ptr ptr ptr ptr) secur32.AcquireCredentialsHandleW
+@ stdcall ApplyControlToken(ptr ptr) secur32.ApplyControlToken
+@ stub CloseSslPerformanceData
+@ stub CollectSslPerformanceData
+@ stdcall CompleteAuthToken(ptr ptr) secur32.CompleteAuthToken
+@ stdcall DeleteSecurityContext(ptr) secur32.DeleteSecurityContext
+@ stdcall EnumerateSecurityPackagesA(ptr ptr) secur32.EnumerateSecurityPackagesA
+@ stdcall EnumerateSecurityPackagesW(ptr ptr) secur32.EnumerateSecurityPackagesW
+@ stdcall FreeContextBuffer(ptr) secur32.FreeContextBuffer
+@ stdcall FreeCredentialsHandle(ptr) secur32.FreeCredentialsHandle
+@ stdcall ImpersonateSecurityContext(ptr) secur32.ImpersonateSecurityContext
+@ stdcall InitSecurityInterfaceA() secur32.InitSecurityInterfaceA
+@ stdcall InitSecurityInterfaceW() secur32.InitSecurityInterfaceW
+@ stdcall InitializeSecurityContextA(ptr ptr str long long long ptr long ptr ptr ptr ptr) secur32.InitializeSecurityContextA
+@ stdcall InitializeSecurityContextW(ptr ptr wstr long long long ptr long ptr ptr ptr ptr) secur32.InitializeSecurityContextW
+@ stdcall MakeSignature(ptr long ptr long) secur32.MakeSignature
+@ stub OpenSslPerformanceData
+@ stdcall QueryContextAttributesA(ptr long ptr) secur32.QueryContextAttributesA
+@ stdcall QueryContextAttributesW(ptr long ptr) secur32.QueryContextAttributesW
+@ stdcall QuerySecurityPackageInfoA(str ptr) secur32.QuerySecurityPackageInfoA
+@ stdcall QuerySecurityPackageInfoW(wstr ptr) secur32.QuerySecurityPackageInfoW
+@ stdcall RevertSecurityContext(ptr) secur32.RevertSecurityContext
+@ stdcall SealMessage(ptr long ptr long) secur32.SealMessage
+@ stub SpLsaModeInitialize
+@ stub SpUserModeInitialize
+@ stub SslCrackCertificate
+@ stub SslEmptyCacheA
+@ stub SslEmptyCacheW
+@ stub SslFreeCertificate
+@ stub SslGenerateKeyPair
+@ stub SslGenerateRandomBits
+@ stub SslGetMaximumKeySize
+@ stub SslLoadCertificate
+@ stdcall UnsealMessage(ptr ptr long ptr) secur32.UnsealMessage
+@ stdcall VerifySignature(ptr ptr long ptr) secur32.VerifySignature
diff --git a/dlls/schannel/schannel_main.c b/dlls/schannel/schannel_main.c
new file mode 100644
index 0000000..9889c5d
--- /dev/null
+++ b/dlls/schannel/schannel_main.c
@@ -0,0 +1,40 @@
+/*
+ * SSL/TLS Security Library
+ *
+ * Copyright 2007 Rob Shearman, for CodeWeavers
+ *
+ * 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 "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(schannel);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+	TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved);
+
+	if (fdwReason == DLL_WINE_PREATTACH) return FALSE;	/* prefer native version */
+
+	if (fdwReason == DLL_PROCESS_ATTACH)
+		DisableThreadLibraryCalls(hinstDLL);
+
+	return TRUE;
+}


More information about the wine-patches mailing list