aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMSession.h
diff options
context:
space:
mode:
authorChris Ballinger <chrisballinger@gmail.com>2016-04-13 16:53:47 -0700
committerChris Ballinger <chrisballinger@gmail.com>2016-04-13 16:53:47 -0700
commitdaab2a58af947cddd67fe9f30dd3a9fc327650c0 (patch)
tree6d2e3abfc160198ec1d8e521a74b1f1d236c0ea3 /xcode/OLMKit/OLMSession.h
parentf505113fb7a6d61015ad8050b3fb4e26df029150 (diff)
OLMAccount and OLMSession serialization
Diffstat (limited to 'xcode/OLMKit/OLMSession.h')
-rw-r--r--xcode/OLMKit/OLMSession.h6
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;