From 885b85f5167d2d3ddcbe3de41dc88e8586b01a57 Mon Sep 17 00:00:00 2001 From: manuroe Date: Tue, 17 Jan 2017 14:47:41 +0100 Subject: OLMKit: Add wrappers for export/import of inbound group sessions --- xcode/OLMKit/OLMInboundGroupSession.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'xcode/OLMKit/OLMInboundGroupSession.h') 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 -- (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 -- cgit v1.2.3