diff options
author | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-13 16:53:47 -0700 |
---|---|---|
committer | Chris Ballinger <chrisballinger@gmail.com> | 2016-04-13 16:53:47 -0700 |
commit | daab2a58af947cddd67fe9f30dd3a9fc327650c0 (patch) | |
tree | 6d2e3abfc160198ec1d8e521a74b1f1d236c0ea3 /xcode/OLMKit/OLMSession.h | |
parent | f505113fb7a6d61015ad8050b3fb4e26df029150 (diff) |
OLMAccount and OLMSession serialization
Diffstat (limited to 'xcode/OLMKit/OLMSession.h')
-rw-r--r-- | xcode/OLMKit/OLMSession.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xcode/OLMKit/OLMSession.h b/xcode/OLMKit/OLMSession.h index 1a075e4..c209564 100644 --- a/xcode/OLMKit/OLMSession.h +++ b/xcode/OLMKit/OLMSession.h @@ -11,9 +11,7 @@ #import "OLMAccount.h" #import "OLMMessage.h" -@interface OLMSession : NSObject <OLMSerializable> - -@property (nonatomic, strong) OLMAccount *account; +@interface OLMSession : NSObject <OLMSerializable, NSSecureCoding> - (instancetype) initOutboundSessionWithAccount:(OLMAccount*)account theirIdentityKey:(NSString*)theirIdentityKey theirOneTimeKey:(NSString*)theirOneTimeKey; @@ -27,8 +25,6 @@ - (BOOL) matchesInboundSessionFrom:(NSString*)theirIdentityKey oneTimeKeyMessage:(NSString *)oneTimeKeyMessage; -- (BOOL) removeOneTimeKeys; - /** UTF-8 plaintext -> base64 ciphertext */ - (OLMMessage*) encryptMessage:(NSString*)message; |