Skip to content

Commit

Permalink
Implement starttls using network framework
Browse files Browse the repository at this point in the history
This gives us TLSv1.3 and channel-binding even when using starttls and
is compatible with iOS >= 16
  • Loading branch information
tmolitor-stud-tu committed Oct 28, 2023
1 parent 03f647b commit ea29888
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 130 deletions.
3 changes: 2 additions & 1 deletion Monal/Classes/MLStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ NS_ASSUME_NONNULL_BEGIN
@property(nullable, readonly) NSArray* supportedChannelBindingTypes;
@property(readonly) BOOL isTLS13;

+(void) connectWithSNIDomain:(NSString*) SNIDomain connectHost:(NSString*) host connectPort:(NSNumber*) port inputStream:(NSInputStream* _Nullable * _Nonnull) inputStream outputStream:(NSOutputStream* _Nullable * _Nonnull) outputStream;
+(void) connectWithSNIDomain:(NSString*) SNIDomain connectHost:(NSString*) host connectPort:(NSNumber*) port tls:(BOOL) tls inputStream:(NSInputStream* _Nullable * _Nonnull) inputStream outputStream:(NSOutputStream* _Nullable * _Nonnull) outputStream;
-(void) startTLS;
-(NSData* _Nullable) channelBindingDataForType:(NSString* _Nullable) type;
@end

Expand Down
Loading

0 comments on commit ea29888

Please sign in to comment.