]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurityd/lib/sscommon.h
2 * Copyright (c) 2000-2004,2006-2008,2011 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
26 // sscommon - common definitions for all securityd MIG interfaces
28 // This is meant to go into both ssclient and tdclient (for tokend), so it
29 // needs to be fairly generic.
34 #include <Security/cssm.h>
37 // some handle types used to be defined here, so don't break anybody still
40 #include <securityd_client/handletypes.h>
44 #include <security_utilities/alloc.h>
45 #include <security_utilities/mach++.h>
46 #include <security_cdsa_utilities/cssmdata.h>
47 #include <security_cdsa_utilities/cssmkey.h>
48 #include <security_cdsa_utilities/cssmacl.h>
49 #include <security_cdsa_utilities/context.h>
50 #include <security_cdsa_utilities/cssmdbname.h>
51 #include <security_cdsa_utilities/cssmdb.h>
55 namespace SecurityServer
{
57 using MachPlusPlus::Port
;
58 using MachPlusPlus::ReceivePort
;
64 // The default Mach bootstrap registration name for SecurityServer,
65 // and the environment variable to override it
67 #define SECURITYSERVER_BOOTSTRAP_NAME "com.apple.SecurityServer"
68 #define SECURITYSERVER_BOOTSTRAP_ENV "SECURITYSERVER"
71 // Types of ACL bearers
73 typedef enum { dbAcl
, keyAcl
, objectAcl
, loginAcl
} AclKind
;
80 // Common structure for IPC-client mediator objects
85 ClientCommon(Allocator
&standard
= Allocator::standard(),
86 Allocator
&returning
= Allocator::standard())
87 : internalAllocator(standard
), returnAllocator(returning
) { }
89 Allocator
&internalAllocator
;
90 Allocator
&returnAllocator
;
93 typedef Security::Context Context
;
98 } // end namespace SecurityServer
99 } // end namespace Security