2009-01-28 06:01:17 +01:00
|
|
|
/*
|
|
|
|
* AUTHZ Implementation
|
|
|
|
*
|
|
|
|
* Copyright 2009 Austin English
|
|
|
|
*
|
|
|
|
* 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"
|
|
|
|
|
2016-03-01 07:46:01 +01:00
|
|
|
#include "authz.h"
|
|
|
|
|
2009-01-28 06:01:17 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(authz);
|
|
|
|
|
2009-11-24 17:50:55 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* AuthzInitializeResourceManager (AUTHZ.@)
|
|
|
|
*/
|
2016-03-01 07:46:01 +01:00
|
|
|
BOOL WINAPI AuthzInitializeResourceManager(DWORD flags, PFN_AUTHZ_DYNAMIC_ACCESS_CHECK access_checker,
|
|
|
|
PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS compute_dyn_groups, PFN_AUTHZ_FREE_DYNAMIC_GROUPS free_dyn_groups,
|
|
|
|
const WCHAR *managername, AUTHZ_RESOURCE_MANAGER_HANDLE *handle )
|
2009-11-24 17:50:55 +01:00
|
|
|
{
|
2016-03-01 07:46:01 +01:00
|
|
|
FIXME("(0x%x,%p,%p,%p,%s,%p): stub\n", flags, access_checker,
|
|
|
|
compute_dyn_groups, free_dyn_groups,
|
|
|
|
debugstr_w(managername), handle);
|
2009-11-24 17:50:55 +01:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2014-08-28 21:45:32 +02:00
|
|
|
|
2019-04-29 06:54:08 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* AuthzFreeResourceManager (AUTHZ.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI AuthzFreeResourceManager(AUTHZ_RESOURCE_MANAGER_HANDLE handle)
|
|
|
|
{
|
|
|
|
FIXME("%p\n", handle);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2014-08-28 21:45:32 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* AuthzInstallSecurityEventSource (AUTHZ.@)
|
|
|
|
*/
|
2016-03-01 07:46:01 +01:00
|
|
|
BOOL WINAPI AuthzInstallSecurityEventSource(DWORD flags, AUTHZ_SOURCE_SCHEMA_REGISTRATION *registration)
|
|
|
|
{
|
|
|
|
FIXME("(0x%x,%p): stub\n", flags, registration);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* AuthzAccessCheck (AUTHZ.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI AuthzAccessCheck(DWORD flags, AUTHZ_CLIENT_CONTEXT_HANDLE client_context,
|
|
|
|
AUTHZ_ACCESS_REQUEST *request, AUTHZ_AUDIT_EVENT_HANDLE audit_event,
|
|
|
|
PSECURITY_DESCRIPTOR security, PSECURITY_DESCRIPTOR *optional_security,
|
|
|
|
DWORD optional_security_count, AUTHZ_ACCESS_REPLY *reply,
|
|
|
|
AUTHZ_ACCESS_CHECK_RESULTS_HANDLE *access_check_result)
|
|
|
|
{
|
|
|
|
FIXME("(0x%x,%p,%p,%p,%p,%p,0x%x,%p,%p): stub\n", flags, client_context,
|
|
|
|
request, audit_event, security, optional_security,
|
|
|
|
optional_security_count, reply, access_check_result);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* AuthzFreeContext (AUTHZ.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI AuthzFreeContext(AUTHZ_CLIENT_CONTEXT_HANDLE client_context)
|
|
|
|
{
|
|
|
|
FIXME("(%p): stub\n", client_context);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* AuthzInitializeContextFromSid (AUTHZ.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI AuthzInitializeContextFromSid(DWORD flags, PSID sid,
|
|
|
|
AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
|
|
|
|
LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
|
|
|
|
{
|
|
|
|
FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags, sid, resource_manager,
|
|
|
|
expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* AuthzInitializeContextFromToken (AUTHZ.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI AuthzInitializeContextFromToken(DWORD flags, HANDLE token_handle,
|
|
|
|
AUTHZ_RESOURCE_MANAGER_HANDLE resource_manager, LARGE_INTEGER *expire_time,
|
|
|
|
LUID id, void *dynamic_group, AUTHZ_CLIENT_CONTEXT_HANDLE *client_context)
|
2014-08-28 21:45:32 +02:00
|
|
|
{
|
2016-03-01 07:46:01 +01:00
|
|
|
FIXME("(0x%x,%p,%p,%p,%08x:%08x,%p,%p): stub\n", flags, token_handle, resource_manager,
|
|
|
|
expire_time, id.HighPart, id.LowPart, dynamic_group, client_context);
|
2014-08-28 21:45:32 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return FALSE;
|
|
|
|
}
|