OTBottleContents.h [plain text]
#import <Foundation/Foundation.h>
#import <ProtocolBuffer/PBCodable.h>
@class OTPrivateKey;
@class OTPrivateKey;
#ifdef __cplusplus
#define OTBOTTLECONTENTS_FUNCTION extern "C" __attribute__((visibility("hidden")))
#else
#define OTBOTTLECONTENTS_FUNCTION extern __attribute__((visibility("hidden")))
#endif
__attribute__((visibility("hidden")))
@interface OTBottleContents : PBCodable <NSCopying>
{
OTPrivateKey *_peerEncryptionPrivKey;
OTPrivateKey *_peerSigningPrivKey;
NSData *_reserved1;
NSData *_reserved2;
}
@property (nonatomic, readonly) BOOL hasReserved1;
@property (nonatomic, retain) NSData *reserved1;
@property (nonatomic, readonly) BOOL hasReserved2;
@property (nonatomic, retain) NSData *reserved2;
@property (nonatomic, readonly) BOOL hasPeerSigningPrivKey;
@property (nonatomic, retain) OTPrivateKey *peerSigningPrivKey;
@property (nonatomic, readonly) BOOL hasPeerEncryptionPrivKey;
@property (nonatomic, retain) OTPrivateKey *peerEncryptionPrivKey;
- (void)copyTo:(OTBottleContents *)other;
- (void)mergeFrom:(OTBottleContents *)other;
OTBOTTLECONTENTS_FUNCTION BOOL OTBottleContentsReadFrom(__unsafe_unretained OTBottleContents *self, __unsafe_unretained PBDataReader *reader);
@end