source: trunk/src/schannel/usermode.c@ 21373

Last change on this file since 21373 was 21373, checked in by vladest, 15 years ago

Added SCHANNEL api for security

File size: 2.6 KB
Line 
1/*
2 * User-mode functions of the SChannel security provider
3 *
4 * Copyright 2007 Yuval Fledel
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#include <stdarg.h>
22
23#include "ntstatus.h"
24#define WIN32_NO_STATUS
25#include "windef.h"
26#include "winbase.h"
27#include "winnt.h"
28#include "ntdef.h"
29
30#include "sspi.h"
31#include "ntsecapi.h"
32#include "ntsecpkg.h"
33
34#include "wine/debug.h"
35
36WINE_DEFAULT_DEBUG_CHANNEL(schannel);
37
38static SECPKG_USER_FUNCTION_TABLE secPkgUserTables[2] =
39{ {
40 NULL, /* InstanceInit */
41 NULL, /* InitUserModeContext */
42 NULL, /* MakeSignature */
43 NULL, /* VerifySignature */
44 NULL, /* SealMessage */
45 NULL, /* UnsealMessage */
46 NULL, /* GetContextToken */
47 NULL, /* SpQueryContextAttributes */
48 NULL, /* CompleteAuthToken */
49 NULL, /* DeleteUserModeContext */
50 NULL, /* FormatCredentials */
51 NULL, /* MarshallSupplementalCreds */
52 NULL, /* ExportContext */
53 NULL, /* ImportContext */
54 }, {
55 NULL, /* InstanceInit */
56 NULL, /* InitUserModeContext */
57 NULL, /* MakeSignature */
58 NULL, /* VerifySignature */
59 NULL, /* SealMessage */
60 NULL, /* UnsealMessage */
61 NULL, /* GetContextToken */
62 NULL, /* SpQueryContextAttributes */
63 NULL, /* CompleteAuthToken */
64 NULL, /* DeleteUserModeContext */
65 NULL, /* FormatCredentials */
66 NULL, /* MarshallSupplementalCreds */
67 NULL, /* ExportContext */
68 NULL, /* ImportContext */
69 }
70};
71
72/***********************************************************************
73 * SpUserModeInitialize (SCHANNEL.@)
74 */
75NTSTATUS WINAPI SpUserModeInitialize(ULONG LsaVersion, PULONG PackageVersion,
76 PSECPKG_USER_FUNCTION_TABLE *ppTables, PULONG pcTables)
77{
78 TRACE("(%u, %p, %p, %p)\n", LsaVersion, PackageVersion, ppTables, pcTables);
79
80 if (LsaVersion != SECPKG_INTERFACE_VERSION)
81 return STATUS_INVALID_PARAMETER;
82
83 *PackageVersion = SECPKG_INTERFACE_VERSION;
84 *pcTables = 2;
85 *ppTables = secPkgUserTables;
86
87 return STATUS_SUCCESS;
88}
Note: See TracBrowser for help on using the repository browser.