]> git.saurik.com Git - apple/security.git/blob - keychain/TrustedPeersHelper/proto/generated_source/OTBottleContents.h
Security-59306.11.20.tar.gz
[apple/security.git] / keychain / TrustedPeersHelper / proto / generated_source / OTBottleContents.h
1 // This file was automatically generated by protocompiler
2 // DO NOT EDIT!
3 // Compiled from OTBottleContents.proto
4
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
7
8 @class OTPrivateKey;
9 @class OTPrivateKey;
10
11 #ifdef __cplusplus
12 #define OTBOTTLECONTENTS_FUNCTION extern "C" __attribute__((visibility("hidden")))
13 #else
14 #define OTBOTTLECONTENTS_FUNCTION extern __attribute__((visibility("hidden")))
15 #endif
16
17 __attribute__((visibility("hidden")))
18 @interface OTBottleContents : PBCodable <NSCopying>
19 {
20 OTPrivateKey *_peerEncryptionPrivKey;
21 OTPrivateKey *_peerSigningPrivKey;
22 NSData *_reserved1;
23 NSData *_reserved2;
24 }
25
26
27 @property (nonatomic, readonly) BOOL hasReserved1;
28 /** tags 1 and 2 were briefly used during development for the raw private key data, with nothing to specify the key type. */
29 @property (nonatomic, retain) NSData *reserved1;
30
31 @property (nonatomic, readonly) BOOL hasReserved2;
32 @property (nonatomic, retain) NSData *reserved2;
33
34 @property (nonatomic, readonly) BOOL hasPeerSigningPrivKey;
35 @property (nonatomic, retain) OTPrivateKey *peerSigningPrivKey;
36
37 @property (nonatomic, readonly) BOOL hasPeerEncryptionPrivKey;
38 @property (nonatomic, retain) OTPrivateKey *peerEncryptionPrivKey;
39
40 // Performs a shallow copy into other
41 - (void)copyTo:(OTBottleContents *)other;
42
43 // Performs a deep merge from other into self
44 // If set in other, singular values in self are replaced in self
45 // Singular composite values are recursively merged
46 // Repeated values from other are appended to repeated values in self
47 - (void)mergeFrom:(OTBottleContents *)other;
48
49 OTBOTTLECONTENTS_FUNCTION BOOL OTBottleContentsReadFrom(__unsafe_unretained OTBottleContents *self, __unsafe_unretained PBDataReader *reader);
50
51 @end
52