1 // This file was automatically generated by protocompiler
3 // Compiled from OTBottle.proto
5 #import <Foundation/Foundation.h>
6 #import <ProtocolBuffer/PBCodable.h>
8 @
class OTAuthenticatedCiphertext
;
11 #define OTBOTTLE_FUNCTION extern "C" __attribute__((visibility("hidden")))
13 #define OTBOTTLE_FUNCTION extern __attribute__((visibility("hidden")))
16 __attribute__((visibility("hidden")))
17 @interface OTBottle
: PBCodable
<NSCopying
>
20 OTAuthenticatedCiphertext
*_contents
;
21 NSData
*_escrowedEncryptionSPKI
;
22 NSData
*_escrowedSigningSPKI
;
23 NSData
*_peerEncryptionSPKI
;
25 NSData
*_peerSigningSPKI
;
34 @
property (nonatomic
, readonly
) BOOL hasPeerID
;
35 @
property (nonatomic
, retain
) NSString
*peerID
;
37 @
property (nonatomic
, readonly
) BOOL hasBottleID
;
38 @
property (nonatomic
, retain
) NSString
*bottleID
;
40 @
property (nonatomic
, readonly
) BOOL hasReserved3
;
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:
45 @
property (nonatomic
, retain
) NSData
*reserved3
;
47 @
property (nonatomic
, readonly
) BOOL hasReserved4
;
48 @
property (nonatomic
, retain
) NSData
*reserved4
;
50 @
property (nonatomic
, readonly
) BOOL hasReserved5
;
51 @
property (nonatomic
, retain
) NSData
*reserved5
;
53 @
property (nonatomic
, readonly
) BOOL hasReserved6
;
54 @
property (nonatomic
, retain
) NSData
*reserved6
;
56 @
property (nonatomic
, readonly
) BOOL hasEscrowedSigningSPKI
;
57 /** as SubjectPublicKeyInfo (SPKI): */
58 @
property (nonatomic
, retain
) NSData
*escrowedSigningSPKI
;
60 @
property (nonatomic
, readonly
) BOOL hasEscrowedEncryptionSPKI
;
61 @
property (nonatomic
, retain
) NSData
*escrowedEncryptionSPKI
;
63 @
property (nonatomic
, readonly
) BOOL hasPeerSigningSPKI
;
64 @
property (nonatomic
, retain
) NSData
*peerSigningSPKI
;
66 @
property (nonatomic
, readonly
) BOOL hasPeerEncryptionSPKI
;
67 @
property (nonatomic
, retain
) NSData
*peerEncryptionSPKI
;
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
;
73 @
property (nonatomic
, readonly
) BOOL hasContents
;
74 @
property (nonatomic
, retain
) OTAuthenticatedCiphertext
*contents
;
76 // Performs a shallow copy into other
77 - (void)copyTo
:(OTBottle
*)other
;
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
;
85 OTBOTTLE_FUNCTION BOOL
OTBottleReadFrom(__unsafe_unretained OTBottle
*self
, __unsafe_unretained PBDataReader
*reader
);