diff options
author | manuroe <manu@matrix.org> | 2017-01-17 14:47:41 +0100 |
---|---|---|
committer | manuroe <manu@matrix.org> | 2017-01-17 14:47:41 +0100 |
commit | 885b85f5167d2d3ddcbe3de41dc88e8586b01a57 (patch) | |
tree | d9d05e75aa7fcf49584cb608ea284899c0eb2cd9 /xcode/OLMKit/OLMInboundGroupSession.h | |
parent | 860740a91ee0efcf3c594ece23ef0a38ddda394e (diff) |
OLMKit: Add wrappers for export/import of inbound group sessions
Diffstat (limited to 'xcode/OLMKit/OLMInboundGroupSession.h')
-rw-r--r-- | xcode/OLMKit/OLMInboundGroupSession.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xcode/OLMKit/OLMInboundGroupSession.h b/xcode/OLMKit/OLMInboundGroupSession.h index ede68e3..e0cd961 100644 --- a/xcode/OLMKit/OLMInboundGroupSession.h +++ b/xcode/OLMKit/OLMInboundGroupSession.h @@ -20,11 +20,19 @@ @interface OLMInboundGroupSession : NSObject <OLMSerializable, NSSecureCoding> -- (instancetype) initInboundGroupSessionWithSessionKey:(NSString*)sessionKey error:(NSError**)error; +- (instancetype)initInboundGroupSessionWithSessionKey:(NSString*)sessionKey error:(NSError**)error; + +- (instancetype)initInboundGroupSessionWithImportedSession:(NSString*)sessionKey error:(NSError**)error; - (NSString*)sessionIdentifier; /** base64 ciphertext -> UTF-8 plaintext */ - (NSString*)decryptMessage:(NSString*)message messageIndex:(NSUInteger*)messageIndex error:(NSError**)error; +- (NSUInteger)firstKnownIndex; + +- (BOOL)isVerified; + +- (NSString*)exportSessionAtMessageIndex:(NSUInteger*)messageIndex error:(NSError**)error; + @end |