]>
Commit | Line | Data |
---|---|---|
b1ab9ed8 A |
1 | #ifndef __MANIFEST_SIGNER__ |
2 | #define __MANIFEST_SIGNER__ | |
3 | ||
4 | ||
5 | ||
f380ce78 | 6 | /* |
d8f41ccd | 7 | * Copyright (c) 2004,2011,2014 Apple Inc. All Rights Reserved. |
f380ce78 A |
8 | * |
9 | * @APPLE_LICENSE_HEADER_START@ | |
10 | * | |
11 | * This file contains Original Code and/or Modifications of Original Code | |
12 | * as defined in and that are subject to the Apple Public Source License | |
13 | * Version 2.0 (the 'License'). You may not use this file except in | |
14 | * compliance with the License. Please obtain a copy of the License at | |
15 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
16 | * file. | |
17 | * | |
18 | * The Original Code and all software distributed under the License are | |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
23 | * Please see the License for the specific language governing rights and | |
24 | * limitations under the License. | |
25 | * | |
26 | * @APPLE_LICENSE_HEADER_END@ | |
27 | */ | |
b1ab9ed8 A |
28 | |
29 | ||
30 | ||
31 | #include "SecManifest.h" | |
32 | #include "ManifestInternal.h" | |
33 | ||
34 | ||
35 | ||
36 | class ManifestSigner | |
37 | { | |
38 | protected: | |
39 | ||
40 | public: | |
41 | virtual ~ManifestSigner (); | |
42 | ||
43 | virtual CFDataRef Export (ManifestInternal& manifest) = 0; | |
44 | virtual void Verify (CFDataRef data, SecManifestTrustSetupCallback setupCallback, void* setupContext, | |
45 | SecManifestTrustEvaluateCallback evaluateCallback, void* evaluateContext, | |
46 | SecPolicyRef policyRef, ManifestInternal *manifest) = 0; | |
47 | virtual void AddSigner (SecIdentityRef identityRef) = 0; | |
48 | }; | |
49 | ||
50 | ||
51 | ||
52 | #endif |