test/message_api_test.cc
branchENGINE-423
changeset 2615 5cd3625e0d91
parent 2496 389abc0e9b54
child 2623 009950d133c1
     1.1 --- a/test/message_api_test.cc	Thu Apr 19 09:38:52 2018 +0200
     1.2 +++ b/test/message_api_test.cc	Thu Apr 19 16:03:44 2018 +0200
     1.3 @@ -93,6 +93,7 @@
     1.4      PEP_rating rating;
     1.5      PEP_decrypt_flags_t flags;
     1.6      
     1.7 +    flags = 0;
     1.8      PEP_STATUS status4 = decrypt_message(session, enc_msg2, &msg4, &keylist4, &rating, &flags);
     1.9      assert(status4 == PEP_STATUS_OK);
    1.10      assert(msg4);
    1.11 @@ -136,6 +137,7 @@
    1.12      stringlist_t *keylist5 = nullptr;
    1.13      PEP_rating rating2;
    1.14      PEP_decrypt_flags_t flags2;
    1.15 +    flags2 = 0;
    1.16      PEP_STATUS status6 = decrypt_message(session, msg5, &msg6, &keylist5, &rating2, &flags2);
    1.17      assert(status6 == PEP_DECRYPT_NO_KEY);
    1.18      assert(msg6 == NULL);
    1.19 @@ -177,6 +179,7 @@
    1.20      PEP_decrypt_flags_t dec_flags;
    1.21      stringlist_t* keys_used;
    1.22      
    1.23 +    dec_flags = 0;
    1.24      PEP_STATUS status8 = MIME_decrypt_message(session, text5.c_str(), text5.length(), &dec_msg, &keys_used, &rating, &dec_flags);
    1.25      assert(status8 == PEP_STATUS_OK);
    1.26