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