mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Objective-C
		
	
//
 | 
						|
//  Copyright (c) 2018 Open Whisper Systems. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#import <Foundation/Foundation.h>
 | 
						|
 | 
						|
@class AliceAxolotlParameters;
 | 
						|
@class BobAxolotlParameters;
 | 
						|
@class ECKeyPair;
 | 
						|
@class SessionState;
 | 
						|
 | 
						|
@interface RatchetingSession : NSObject
 | 
						|
 | 
						|
+ (void)throws_initializeSession:(SessionState *)session
 | 
						|
                  sessionVersion:(int)sessionVersion
 | 
						|
                 AliceParameters:(AliceAxolotlParameters *)parameters NS_SWIFT_UNAVAILABLE("throws objc exceptions");
 | 
						|
 | 
						|
+ (BOOL)initializeSession:(SessionState *)session
 | 
						|
           sessionVersion:(int)sessionVersion
 | 
						|
          aliceParameters:(AliceAxolotlParameters *)aliceParameters
 | 
						|
                    error:(NSError **)outError;
 | 
						|
 | 
						|
+ (void)throws_initializeSession:(SessionState *)session
 | 
						|
                  sessionVersion:(int)sessionVersion
 | 
						|
                   BobParameters:(BobAxolotlParameters *)parameters NS_SWIFT_UNAVAILABLE("throws objc exceptions");
 | 
						|
 | 
						|
+ (BOOL)initializeSession:(SessionState *)session
 | 
						|
           sessionVersion:(int)sessionVersion
 | 
						|
            bobParameters:(BobAxolotlParameters *)bobParameters
 | 
						|
                    error:(NSError **)outError;
 | 
						|
 | 
						|
/**
 | 
						|
 *  For testing purposes
 | 
						|
 */
 | 
						|
 | 
						|
+ (void)throws_initializeSession:(SessionState *)session
 | 
						|
                  sessionVersion:(int)sessionVersion
 | 
						|
                 AliceParameters:(AliceAxolotlParameters *)parameters
 | 
						|
                   senderRatchet:(ECKeyPair *)ratchet NS_SWIFT_UNAVAILABLE("throws objc exceptions");
 | 
						|
 | 
						|
@end
 |