IOSAD-172 Add missing methods to PEPSession IOSAD-172
authorDirk Zimmermann <dz@pep.security>
Sat, 27 Jun 2020 15:21:00 +0200
branchIOSAD-172
changeset 15189b72d301ab28
parent 1517 2aa3f8ebb4d6
child 1519 6f4a4623bfe7
IOSAD-172 Add missing methods to PEPSession
pEpObjCAdapter/PEPSession.m
     1.1 --- a/pEpObjCAdapter/PEPSession.m	Sat Jun 27 15:15:37 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSession.m	Sat Jun 27 15:21:00 2020 +0200
     1.3 @@ -399,4 +399,20 @@
     1.4      return [session keyResetAllOwnKeysError:error];
     1.5  }
     1.6  
     1.7 +- (BOOL)configurePassphrase:(NSString * _Nonnull)passphrase
     1.8 +                      error:(NSError * _Nullable __autoreleasing * _Nullable)error {
     1.9 +    PEPInternalSession *session = [PEPSessionProvider session];
    1.10 +    RETURN_ON_ERROR(session, error, NO);
    1.11 +    return [session configurePassphrase:passphrase error:error];
    1.12 +}
    1.13 +
    1.14 +
    1.15 +- (BOOL)configurePassphraseForNewKeys:(NSString * _Nullable)passphrase
    1.16 +                               enable:(BOOL)enable
    1.17 +                                error:(NSError * _Nullable __autoreleasing * _Nullable)error {
    1.18 +    PEPInternalSession *session = [PEPSessionProvider session];
    1.19 +    RETURN_ON_ERROR(session, error, NO);
    1.20 +    return [session configurePassphraseForNewKeys:passphrase enable:enable error:error];
    1.21 +}
    1.22 +
    1.23  @end