Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenusermode.c
Go to the documentation of this file.
00001 /* 00002 * User-mode functions of the SChannel security provider 00003 * 00004 * Copyright 2007 Yuval Fledel 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 #include <stdarg.h> 00022 00023 #include "ntstatus.h" 00024 #define WIN32_NO_STATUS 00025 #include "windef.h" 00026 #include "winbase.h" 00027 #include "sspi.h" 00028 #include "ntsecapi.h" 00029 #include "ntsecpkg.h" 00030 00031 #include "wine/debug.h" 00032 00033 WINE_DEFAULT_DEBUG_CHANNEL(schannel); 00034 00035 static SECPKG_USER_FUNCTION_TABLE secPkgUserTables[2] = 00036 { { 00037 NULL, /* InstanceInit */ 00038 NULL, /* InitUserModeContext */ 00039 NULL, /* MakeSignature */ 00040 NULL, /* VerifySignature */ 00041 NULL, /* SealMessage */ 00042 NULL, /* UnsealMessage */ 00043 NULL, /* GetContextToken */ 00044 NULL, /* SpQueryContextAttributes */ 00045 NULL, /* CompleteAuthToken */ 00046 NULL, /* DeleteUserModeContext */ 00047 NULL, /* FormatCredentials */ 00048 NULL, /* MarshallSupplementalCreds */ 00049 NULL, /* ExportContext */ 00050 NULL, /* ImportContext */ 00051 }, { 00052 NULL, /* InstanceInit */ 00053 NULL, /* InitUserModeContext */ 00054 NULL, /* MakeSignature */ 00055 NULL, /* VerifySignature */ 00056 NULL, /* SealMessage */ 00057 NULL, /* UnsealMessage */ 00058 NULL, /* GetContextToken */ 00059 NULL, /* SpQueryContextAttributes */ 00060 NULL, /* CompleteAuthToken */ 00061 NULL, /* DeleteUserModeContext */ 00062 NULL, /* FormatCredentials */ 00063 NULL, /* MarshallSupplementalCreds */ 00064 NULL, /* ExportContext */ 00065 NULL, /* ImportContext */ 00066 } 00067 }; 00068 00069 /*********************************************************************** 00070 * SpUserModeInitialize (SCHANNEL.@) 00071 */ 00072 NTSTATUS WINAPI SpUserModeInitialize(ULONG LsaVersion, PULONG PackageVersion, 00073 PSECPKG_USER_FUNCTION_TABLE *ppTables, PULONG pcTables) 00074 { 00075 TRACE("(%u, %p, %p, %p)\n", LsaVersion, PackageVersion, ppTables, pcTables); 00076 00077 if (LsaVersion != SECPKG_INTERFACE_VERSION) 00078 return STATUS_INVALID_PARAMETER; 00079 00080 *PackageVersion = SECPKG_INTERFACE_VERSION; 00081 *pcTables = 2; 00082 *ppTables = secPkgUserTables; 00083 00084 return STATUS_SUCCESS; 00085 } Generated on Sat May 26 2012 04:24:47 for ReactOS by
1.7.6.1
|