]> git.saurik.com Git - apple/security.git/blob - keychain/TrustedPeersHelper/proto/generated_source/OTBottle.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / TrustedPeersHelper / proto / generated_source / OTBottle.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from OTBottle.proto
4
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
7
8 @class OTAuthenticatedCiphertext;
9
10 #ifdef __cplusplus
11 #define OTBOTTLE_FUNCTION extern "C" __attribute__((visibility("hidden")))
12 #else
13 #define OTBOTTLE_FUNCTION extern __attribute__((visibility("hidden")))
14 #endif
15
16 __attribute__((visibility("hidden")))
17 @interface OTBottle : PBCodable <NSCopying>
18 {
19 NSString *_bottleID;
20 OTAuthenticatedCiphertext *_contents;
21 NSData *_escrowedEncryptionSPKI;
22 NSData *_escrowedSigningSPKI;
23 NSData *_peerEncryptionSPKI;
24 NSString *_peerID;
25 NSData *_peerSigningSPKI;
26 NSData *_reserved3;
27 NSData *_reserved4;
28 NSData *_reserved5;
29 NSData *_reserved6;
30 NSData *_reserved7;
31 }
32
33
34 @property (nonatomic, readonly) BOOL hasPeerID;
35 @property (nonatomic, retain) NSString *peerID;
36
37 @property (nonatomic, readonly) BOOL hasBottleID;
38 @property (nonatomic, retain) NSString *bottleID;
39
40 @property (nonatomic, readonly) BOOL hasReserved3;
41 /**
42 * Tags 3, 4, 5 and 6 were briefly used during development for the raw public key data, with nothing to specify the key type.
43 * They are replaced with the following, encoded as SubjectPublicKeyInfo:
44 */
45 @property (nonatomic, retain) NSData *reserved3;
46
47 @property (nonatomic, readonly) BOOL hasReserved4;
48 @property (nonatomic, retain) NSData *reserved4;
49
50 @property (nonatomic, readonly) BOOL hasReserved5;
51 @property (nonatomic, retain) NSData *reserved5;
52
53 @property (nonatomic, readonly) BOOL hasReserved6;
54 @property (nonatomic, retain) NSData *reserved6;
55
56 @property (nonatomic, readonly) BOOL hasEscrowedSigningSPKI;
57 /** as SubjectPublicKeyInfo (SPKI): */
58 @property (nonatomic, retain) NSData *escrowedSigningSPKI;
59
60 @property (nonatomic, readonly) BOOL hasEscrowedEncryptionSPKI;
61 @property (nonatomic, retain) NSData *escrowedEncryptionSPKI;
62
63 @property (nonatomic, readonly) BOOL hasPeerSigningSPKI;
64 @property (nonatomic, retain) NSData *peerSigningSPKI;
65
66 @property (nonatomic, readonly) BOOL hasPeerEncryptionSPKI;
67 @property (nonatomic, retain) NSData *peerEncryptionSPKI;
68
69 @property (nonatomic, readonly) BOOL hasReserved7;
70 /** Tag 7 was briefly used during development for contents encoded with NSKeyedArchiver. */
71 @property (nonatomic, retain) NSData *reserved7;
72
73 @property (nonatomic, readonly) BOOL hasContents;
74 @property (nonatomic, retain) OTAuthenticatedCiphertext *contents;
75
76 // Performs a shallow copy into other
77 - (void)copyTo:(OTBottle *)other;
78
79 // Performs a deep merge from other into self
80 // If set in other, singular values in self are replaced in self
81 // Singular composite values are recursively merged
82 // Repeated values from other are appended to repeated values in self
83 - (void)mergeFrom:(OTBottle *)other;
84
85 OTBOTTLE_FUNCTION BOOL OTBottleReadFrom(__unsafe_unretained OTBottle *self, __unsafe_unretained PBDataReader *reader);
86
87 @end
88