IOSAD-94 wrap config_passive_mode
authorDirk Zimmermann <dirk@pep-project.org>
Wed, 13 Jun 2018 09:53:42 +0200
changeset 624fb142cf04649
parent 623 fade443297e3
child 625 6da48501887b
IOSAD-94 wrap config_passive_mode
pEpObjCAdapter/PEPInternalSession.m
pEpObjCAdapter/PEPSession.m
pEpObjCAdapter/PEPSessionProtocol.h
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Thu Jun 07 11:12:18 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Wed Jun 13 09:53:42 2018 +0200
     1.3 @@ -870,4 +870,9 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +- (void)configurePassiveModeEnabled:(BOOL)enabled
     1.8 +{
     1.9 +    config_passive_mode(_session, enabled);
    1.10 +}
    1.11 +
    1.12  @end
     2.1 --- a/pEpObjCAdapter/PEPSession.m	Thu Jun 07 11:12:18 2018 +0200
     2.2 +++ b/pEpObjCAdapter/PEPSession.m	Wed Jun 13 09:53:42 2018 +0200
     2.3 @@ -318,4 +318,10 @@
     2.4      return [session setOwnKey:identity fingerprint:fingerprint error:error];
     2.5  }
     2.6  
     2.7 +- (void)configurePassiveModeEnabled:(BOOL)enabled
     2.8 +{
     2.9 +    PEPInternalSession *session = [PEPSessionProvider session];
    2.10 +    return [session configurePassiveModeEnabled:enabled];
    2.11 +}
    2.12 +
    2.13  @end
     3.1 --- a/pEpObjCAdapter/PEPSessionProtocol.h	Thu Jun 07 11:12:18 2018 +0200
     3.2 +++ b/pEpObjCAdapter/PEPSessionProtocol.h	Wed Jun 13 09:53:42 2018 +0200
     3.3 @@ -234,4 +234,9 @@
     3.4  - (BOOL)setOwnKey:(PEPIdentity * _Nonnull)identity fingerprint:(NSString * _Nonnull)fingerprint
     3.5              error:(NSError * _Nullable * _Nullable)error;
     3.6  
     3.7 +/**
     3.8 + Wraps the engine's `config_passive_mode`.
     3.9 + */
    3.10 +- (void)configurePassiveModeEnabled:(BOOL)enabled;
    3.11 +
    3.12  @end