Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/dlls/authz/authz.c
4388 views
1
/*
2
* AUTHZ Implementation
3
*
4
* Copyright 2009 Austin English
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
#include <stdarg.h>
21
22
#include "windef.h"
23
#include "winbase.h"
24
#include "wine/debug.h"
25
26
#include "authz.h"
27
28
WINE_DEFAULT_DEBUG_CHANNEL(authz);
29
30
/***********************************************************************
31
* AuthzInitializeResourceManager (AUTHZ.@)
32
*/
33
BOOL WINAPI AuthzInitializeResourceManager(DWORD flags, PFN_AUTHZ_DYNAMIC_ACCESS_CHECK access_checker,
34
PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS compute_dyn_groups, PFN_AUTHZ_FREE_DYNAMIC_GROUPS free_dyn_groups,
35
const WCHAR *managername, AUTHZ_RESOURCE_MANAGER_HANDLE *handle )
36
{
37
FIXME("(0x%lx,%p,%p,%p,%s,%p): stub\n", flags, access_checker,
38
compute_dyn_groups, free_dyn_groups,
39
debugstr_w(managername), handle);
40
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
41
return FALSE;
42
}
43
44
/***********************************************************************
45
* AuthzFreeResourceManager (AUTHZ.@)
46
*/
47
BOOL WINAPI AuthzFreeResourceManager(AUTHZ_RESOURCE_MANAGER_HANDLE handle)
48
{
49
FIXME("%p\n", handle);
50
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
51
return FALSE;
52
}
53
54
/***********************************************************************
55
* AuthzInstallSecurityEventSource (AUTHZ.@)
56
*/
57
BOOL WINAPI AuthzInstallSecurityEventSource(DWORD flags, AUTHZ_SOURCE_SCHEMA_REGISTRATION *registration)
58
{
59
FIXME("(0x%lx,%p): stub\n", flags, registration);
60
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
61
return FALSE;
62
}
63
64
65
/***********************************************************************
66
* AuthzAccessCheck (AUTHZ.@)
67
*/
68
BOOL WINAPI AuthzAccessCheck(DWORD flags, AUTHZ_CLIENT_CONTEXT_HANDLE client_context,
69
AUTHZ_ACCESS_REQUEST *request, AUTHZ_AUDIT_EVENT_HANDLE audit_event,
70
PSECURITY_DESCRIPTOR security, PSECURITY_DESCRIPTOR *optional_security,
71
DWORD optional_security_count, AUTHZ_ACCESS_REPLY *reply,
72
AUTHZ_ACCESS_CHECK_RESULTS_HANDLE *access_check_result)
73
{
74
FIXME("(0x%lx,%p,%p,%p,%p,%p,0x%lx,%p,%p): stub\n", flags, client_context,
75
request, audit_event, security, optional_security,
76
optional_security_count, reply, access_check_result);
77
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
78
return FALSE;
79
}
80
81
82
/***********************************************************************
83
* AuthzFreeContext (AUTHZ.@)
84
*/
85
BOOL WINAPI AuthzFreeContext(AUTHZ_CLIENT_CONTEXT_HANDLE client_context)
86
{
87
FIXME("(%p): stub\n", client_context);
88
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
89
return FALSE;
90
}
91
92
93
/***********************************************************************
94
* AuthzInitializeContextFromSid (AUTHZ.@)
95
*/
96
BOOL WINAPI AuthzInitializeContextFromSid(DWORD flags, PSID sid,
97
AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
98
LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
99
{
100
FIXME("(0x%lx,%p,%p,%p,%08lx:%08lx,%p,%p): stub\n", flags, sid, resource_manager,
101
expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
102
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
103
return FALSE;
104
}
105
106
107
/***********************************************************************
108
* AuthzInitializeContextFromToken (AUTHZ.@)
109
*/
110
BOOL WINAPI AuthzInitializeContextFromToken(DWORD flags, HANDLE token_handle,
111
AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
112
LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
113
{
114
FIXME("(0x%lx,%p,%p,%p,%08lx:%08lx,%p,%p): stub\n", flags, token_handle, resource_manager,
115
expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
116
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
117
return FALSE;
118
}
119
120