test/message_api_test.cc
changeset 241 176b70529dc3
parent 221 498615df9416
child 251 dba7f09db1ed
     1.1 --- a/test/message_api_test.cc	Tue May 05 08:42:50 2015 +0200
     1.2 +++ b/test/message_api_test.cc	Tue May 05 10:15:34 2015 +0200
     1.3 @@ -65,9 +65,19 @@
     1.4      outFile3.close();
     1.5  
     1.6      message *msg4;
     1.7 -    PEP_STATUS status4 = decrypt_message(session, enc_msg2, PEP_MIME_none, &msg4);
     1.8 +    stringlist_t *keylist4;
     1.9 +    PEP_STATUS status4 = decrypt_message(session, enc_msg2, PEP_MIME_none, &msg4, &keylist4);
    1.10      assert(status4 == PEP_STATUS_OK);
    1.11      assert(msg4);
    1.12 +    assert(keylist4);
    1.13 +
    1.14 +    cout << "keys used:";
    1.15 +    stringlist_t *kl4;
    1.16 +    for (kl4 = keylist4; kl4 && kl4->value; kl4 = kl4->next)
    1.17 +        cout << " " << kl4->value;
    1.18 +    cout << "\n\n";
    1.19 +
    1.20 +    free_stringlist(keylist4);
    1.21  
    1.22      cout << "freeing messages…\n";
    1.23      free_message(msg4);