IOS-2325 Decorate identity_rating IOS-2325
authorDirk Zimmermann <dz@pep.security>
Wed, 15 Jul 2020 12:50:03 +0200
branchIOS-2325
changeset 1689d8c38b2369a0
parent 1688 91cd9269bc63
child 1690 7edcb1da95e1
IOS-2325 Decorate identity_rating
pEpObjCAdapter/PEPInternalSession.m
     1.1 --- a/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 15 12:50:03 2020 +0200
     1.2 +++ b/pEpObjCAdapter/PEPInternalSession.m	Wed Jul 15 12:50:03 2020 +0200
     1.3 @@ -507,7 +507,9 @@
     1.4      pEp_identity *ident = PEP_identityToStruct(identity);
     1.5      PEPRating rating = PEPRatingUndefined;
     1.6  
     1.7 -    PEPStatus status = (PEPStatus) identity_rating(_session, ident, (PEP_rating *) &rating);
     1.8 +    PEPStatus status = (PEPStatus) [self runWithPasswords:^PEP_STATUS(PEP_SESSION session) {
     1.9 +        return identity_rating(session, ident, (PEP_rating *) &rating);
    1.10 +    }];
    1.11  
    1.12      free_identity(ident);
    1.13