IOSAD-178 Decorate deliverHandshakeResult IOSAD-178
authorDirk Zimmermann <dz@pep.security>
Mon, 20 Jul 2020 17:00:22 +0200
branchIOSAD-178
changeset 18486c00e8f00de3
parent 1847 90e3b5b94107
child 1849 a0bc56f426ab
IOSAD-178 Decorate deliverHandshakeResult
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 @@ -1030,9 +1030,11 @@
     1.4          identitiesSharingData = PEP_identityArrayToList(identitiesSharing);
     1.5      }
     1.6  
     1.7 -    PEPStatus status = (PEPStatus) deliverHandshakeResult(self.session,
     1.8 -                                                          (sync_handshake_result) result,
     1.9 -                                                          identitiesSharingData);
    1.10 +    PEPStatus status = (PEPStatus) [self runWithPasswords:^PEP_STATUS(PEP_SESSION session) {
    1.11 +        return deliverHandshakeResult(session,
    1.12 +                                      (sync_handshake_result) result,
    1.13 +                                      identitiesSharingData);
    1.14 +    }];
    1.15  
    1.16      free(identitiesSharingData);
    1.17