Skip to content

Commit

Permalink
fix(ios): implement TLSv3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Sep 13, 2019
1 parent a4a78cc commit 091cfb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iphone/Classes/NetworkModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ typedef enum {
// DEFAULT TLS is 0
TLS_VERSION_1_0 = 1,
TLS_VERSION_1_1,
TLS_VERSION_1_2
TLS_VERSION_1_2,
TLS_VERSION_1_3
} TLSVersion;

@interface NetworkModule : TiModule {
Expand Down Expand Up @@ -58,6 +59,7 @@ typedef enum {
@property (nonatomic, readonly) NSNumber *TLS_VERSION_1_0;
@property (nonatomic, readonly) NSNumber *TLS_VERSION_1_1;
@property (nonatomic, readonly) NSNumber *TLS_VERSION_1_2;
@property (nonatomic, readonly) NSNumber *TLS_VERSION_1_3;

- (id)encodeURIComponent:(id)args;
- (id)decodeURIComponent:(id)args;
Expand Down
1 change: 1 addition & 0 deletions iphone/Classes/NetworkModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ - (NSNumber *)networkType
MAKE_SYSTEM_PROP(TLS_VERSION_1_0, TLS_VERSION_1_0);
MAKE_SYSTEM_PROP(TLS_VERSION_1_1, TLS_VERSION_1_1);
MAKE_SYSTEM_PROP(TLS_VERSION_1_2, TLS_VERSION_1_2);
MAKE_SYSTEM_PROP(TLS_VERSION_1_3, TLS_VERSION_1_3);

MAKE_SYSTEM_NUMBER(PROGRESS_UNKNOWN, NUMINT(-1));

Expand Down

0 comments on commit 091cfb1

Please sign in to comment.