pEpObjCTests/PEPSessionTest.m
changeset 556 8f0dfa74c08b
parent 554 9181c9c4f3f7
child 557 7cf2f6710453
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Wed Apr 04 19:49:57 2018 +0200
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Fri Apr 06 09:13:32 2018 +0200
     1.3 @@ -397,6 +397,7 @@
     1.4          PEPMessage *encMsg = [innerSession
     1.5                                encryptMessage:msg
     1.6                                identity:me
     1.7 +                              extraKeys:nil
     1.8                                status:&status error:&error];
     1.9          XCTAssertEqual(status, PEP_STATUS_OK);
    1.10          XCTAssertNotNil(encMsg);
    1.11 @@ -1263,7 +1264,12 @@
    1.12                                    longMessage:longMessage
    1.13                                       outgoing:YES];
    1.14      PEP_STATUS status = PEP_UNKNOWN_ERROR;
    1.15 -    PEPMessage *encMessage = [session encryptMessage:mail identity:me status:&status error:&error];
    1.16 +    PEPMessage *encMessage = [session
    1.17 +                              encryptMessage:mail
    1.18 +                              identity:me
    1.19 +                              extraKeys:nil
    1.20 +                              status:&status
    1.21 +                              error:&error];
    1.22      XCTAssertNil(error);
    1.23  
    1.24      return encMessage;
    1.25 @@ -1287,7 +1293,12 @@
    1.26      PEPMessage *mail = [PEPTestUtils mailFrom:me toIdent:me shortMessage:shortMessage longMessage:longMessage outgoing:YES];
    1.27  
    1.28      PEP_STATUS status;
    1.29 -    PEPMessage *encMessage = [session encryptMessage:mail identity:me status:&status error:&error];
    1.30 +    PEPMessage *encMessage = [session
    1.31 +                              encryptMessage:mail
    1.32 +                              identity:me
    1.33 +                              extraKeys:nil
    1.34 +                              status:&status
    1.35 +                              error:&error];
    1.36      XCTAssertEqual(status, 0);
    1.37      XCTAssertEqualObjects(encMessage.shortMessage, @"p≡p");
    1.38  
    1.39 @@ -1359,7 +1370,12 @@
    1.40  
    1.41      PEP_STATUS statusEnc = PEP_VERSION_MISMATCH;
    1.42      if (toSelf) {
    1.43 -        encMsg = [session encryptMessage:msg identity:identMe status:&statusEnc error:&error];
    1.44 +        encMsg = [session
    1.45 +                  encryptMessage:msg
    1.46 +                  identity:identMe
    1.47 +                  extraKeys:nil
    1.48 +                  status:&statusEnc
    1.49 +                  error:&error];
    1.50          XCTAssertEqual(statusEnc, PEP_STATUS_OK);
    1.51      } else {
    1.52          encMsg = [session encryptMessage:msg extraKeys:nil status:nil error:&error];