IOS-2325 Decorate get_languagelist IOSAD-178
authorDirk Zimmermann <dz@pep.security>
Mon, 20 Jul 2020 17:00:22 +0200
branchIOSAD-178
changeset 18430c1ab3384742
parent 1842 bb9639575e44
child 1844 e644bc06029d
IOS-2325 Decorate get_languagelist
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Mon Jul 20 17:00:22 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Mon Jul 20 17:00:22 2020 +0200
     1.3 @@ -864,7 +864,9 @@
     1.4  - (NSArray<PEPLanguage *> * _Nullable)languageListWithError:(NSError * _Nullable * _Nullable)error
     1.5  {
     1.6      PEPAutoPointer *chLangs = [PEPAutoPointer new];
     1.7 -    PEPStatus status = (PEPStatus) get_languagelist(_session, chLangs.charPointerPointer);
     1.8 +    PEPStatus status = (PEPStatus) [self runWithPasswords:^PEP_STATUS(PEP_SESSION session) {
     1.9 +        return get_languagelist(session, chLangs.charPointerPointer);
    1.10 +    }];
    1.11  
    1.12      if ([NSError setError:error fromPEPStatus:status]) {
    1.13          return nil;