test/message_api_test.cc
changeset 781 21d47c8ae0ae
parent 771 c04f54a73ef8
child 822 56711daa3526
     1.1 --- a/test/message_api_test.cc	Wed Jun 29 23:42:23 2016 +0200
     1.2 +++ b/test/message_api_test.cc	Thu Jun 30 17:48:17 2016 +0200
     1.3 @@ -83,8 +83,14 @@
     1.4      assert(msg4);
     1.5      assert(keylist4);
     1.6      assert(color);
     1.7 +    PEP_comm_type ct = enc_msg2->from->comm_type;
     1.8 +    assert(ct == PEP_ct_pEp || ct == PEP_ct_pEp_unconfirmed);
     1.9 +
    1.10 +    free_stringpair_list(enc_msg2->opt_fields);
    1.11 +    enc_msg2->opt_fields = NULL;
    1.12  
    1.13      cout << "keys used:";
    1.14 +
    1.15      for (stringlist_t* kl4 = keylist4; kl4 && kl4->value; kl4 = kl4->next)
    1.16      {
    1.17          cout << " " << kl4->value;