Reverted test case - mistakenly checked in before doing so.
authorKrista Grothoff <krista@pep-project.org>
Sun, 06 Nov 2016 23:33:35 +0100
changeset 13544ab4bdbbd8d9
parent 1353 d85044eaa921
child 1355 5cc70d0bc348
child 1356 ac3e66355937
Reverted test case - mistakenly checked in before doing so.
test/message_api_test.cc
     1.1 --- a/test/message_api_test.cc	Sun Nov 06 23:32:23 2016 +0100
     1.2 +++ b/test/message_api_test.cc	Sun Nov 06 23:33:35 2016 +0100
     1.3 @@ -145,14 +145,11 @@
     1.4      }
     1.5      inFile4.close();
     1.6      
     1.7 -//    const char* out_msg_plain = text4.c_str();
     1.8 -    
     1.9 -    const char* out_msg_plain = "From: krista@kgrothoff.org\nTo: Volker <vb@pep-project.org>\nSubject: Test\nContent-Type: text/plain; charset=utf-8\nContent-Language: en-US\nContent-Transfer-Encoding:quoted-printable\n\ngaga\n\n";
    1.10 +    const char* out_msg_plain = text4.c_str();
    1.11      char* enc_msg = NULL;
    1.12      char* dec_msg = NULL;
    1.13  
    1.14 -//    PEP_STATUS status7 = MIME_encrypt_message(session, text4.c_str(), text4.length(), NULL, &enc_msg, PEP_enc_PGP_MIME, 0);
    1.15 -    PEP_STATUS status7 = MIME_encrypt_message(session, out_msg_plain, strlen(out_msg_plain), NULL, &enc_msg, PEP_enc_PGP_MIME, 0);
    1.16 +    PEP_STATUS status7 = MIME_encrypt_message(session, text4.c_str(), text4.length(), NULL, &enc_msg, PEP_enc_PGP_MIME, 0);
    1.17      assert(status7 == PEP_STATUS_OK);
    1.18      
    1.19      cout << enc_msg << endl;