]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_manifest/lib/Manifest.h
Security-59306.101.1.tar.gz
[apple/security.git] / OSX / libsecurity_manifest / lib / Manifest.h
1 #ifndef __MANIFEST_YOKE__
2 #define __MANIFEST_YOKE__
3
4
5 #include <security_utilities/security_utilities.h>
6 #include <security_utilities/cfclass.h>
7 #include "SecManifest.h"
8 #include "ManifestInternal.h"
9 #include "ManifestSigner.h"
10 #include "AppleManifest.h"
11
12
13
14 /*
15 * Copyright (c) 2004,2011,2014 Apple Inc. All Rights Reserved.
16 *
17 * @APPLE_LICENSE_HEADER_START@
18 *
19 * This file contains Original Code and/or Modifications of Original Code
20 * as defined in and that are subject to the Apple Public Source License
21 * Version 2.0 (the 'License'). You may not use this file except in
22 * compliance with the License. Please obtain a copy of the License at
23 * http://www.opensource.apple.com/apsl/ and read it before using this
24 * file.
25 *
26 * The Original Code and all software distributed under the License are
27 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
28 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
29 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
30 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
31 * Please see the License for the specific language governing rights and
32 * limitations under the License.
33 *
34 * @APPLE_LICENSE_HEADER_END@
35 */
36
37
38
39 enum ManifestSignerType {kAppleSigner};
40
41 class Manifest
42 {
43
44 protected:
45 ManifestInternal mManifestInternal;
46 ManifestSigner *mManifestSigner;
47
48 public:
49
50 Manifest ();
51
52 virtual ~Manifest () throw ();
53
54 ManifestInternal& GetManifestInternal () {return mManifestInternal;}
55 ManifestSigner* GetSigner () {return mManifestSigner;}
56
57 void MakeSigner (ManifestSignerType whichSigner);
58 };
59
60
61 #endif