Browse Source

A whole bunch of canonical emails generated with various target pEp versions and open PGP - intentionally broken files are in *wrong*.eml

doxygen_doc
Krista Bennett 5 months ago
parent
commit
59b3d16849
51 changed files with 4740 additions and 15 deletions
  1. +1
    -1
      test/gen_test_skel.py
  2. +379
    -0
      test/src/GenerateMailsToMessageTypeTest.cc
  3. +117
    -10
      test/src/TestUtilities.cc
  4. +31
    -4
      test/src/TestUtilities.h
  5. +107
    -0
      test/test_keys/priv/sylvia-0x585A6780_priv.asc
  6. +53
    -0
      test/test_keys/pub/sylvia-0x585A6780_pub.asc
  7. +50
    -0
      test/test_mails/CanonicalFrom2.2BobToAliceOpenPGP_NoKey.eml
  8. +12
    -0
      test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted.eml
  9. +12
    -0
      test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_NoKey.eml
  10. +54
    -0
      test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_wrong_key_filename.eml
  11. +53
    -0
      test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_wrong_sender_key_attached.eml
  12. +50
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_1_0.eml
  13. +50
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_1_0_NoKey.eml
  14. +108
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_1_0_wrong_key_filename.eml
  15. +107
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_1_0_wrong_sender_key_attached.eml
  16. +66
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_0.eml
  17. +66
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_0_NoKey.eml
  18. +121
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_0_wrong_key_filename.eml
  19. +120
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_0_wrong_sender_key_attached.eml
  20. +71
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_1.eml
  21. +71
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_1_NoKey.eml
  22. +126
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_1_wrong_key_filename.eml
  23. +125
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_1_wrong_sender_key_attached.eml
  24. +71
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_2.eml
  25. +126
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_2_wrong_key_filename.eml
  26. +125
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_2_2_wrong_sender_key_attached.eml
  27. +50
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_OpenPGP.eml
  28. +108
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_OpenPGP_wrong_key_filename.eml
  29. +107
    -0
      test/test_mails/CanonicalFrom2.2BobToAlice_OpenPGP_wrong_sender_key_attached.eml
  30. +61
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAliceOpenPGP_NoKey.eml
  31. +12
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAliceUnencrypted.eml
  32. +12
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAliceUnencrypted_NoKey.eml
  33. +79
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAliceUnencrypted_wrong_key_filename.eml
  34. +53
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAliceUnencrypted_wrong_sender_key_attached.eml
  35. +61
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_1_0.eml
  36. +61
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_1_0_NoKey.eml
  37. +160
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_1_0_wrong_key_filename.eml
  38. +118
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_1_0_wrong_sender_key_attached.eml
  39. +77
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_0.eml
  40. +77
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_0_NoKey.eml
  41. +173
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_0_wrong_key_filename.eml
  42. +131
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_0_wrong_sender_key_attached.eml
  43. +82
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_1.eml
  44. +178
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_1_wrong_key_filename.eml
  45. +135
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_1_wrong_sender_key_attached.eml
  46. +81
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_2.eml
  47. +178
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_2_wrong_key_filename.eml
  48. +135
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_2_2_wrong_sender_key_attached.eml
  49. +61
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_OpenPGP.eml
  50. +160
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_OpenPGP_wrong_key_filename.eml
  51. +118
    -0
      test/test_mails/CanonicalFrom2.2SylviaToAlice_OpenPGP_wrong_sender_key_attached.eml

+ 1
- 1
test/gen_test_skel.py View File

@ -33,7 +33,7 @@ newfile.write("#include <stdlib.h>\n")
newfile.write("#include <string>\n")
newfile.write("#include <cstring>\n\n")
newfile.write("#include \"pEpEngine.h\"\n")
newfile.write("#include \"test_util.h\"\n")
newfile.write("#include \"TestUtilities.h\"\n")
newfile.write("#include \"TestConstants.h\"\n")
newfile.write("#include \"Engine.h\"\n\n")
newfile.write("#include <gtest/gtest.h>\n\n\n")


+ 379
- 0
test/src/GenerateMailsToMessageTypeTest.cc View File

@ -0,0 +1,379 @@
#include <stdlib.h>
#include <string>
#include <cstring>
#include "pEpEngine.h"
#include "pEpEngine_internal.h"
#include "TestUtilities.h"
#include "TestConstants.h"
#include "Engine.h"
#include <gtest/gtest.h>
#define GMTMTT_WRITEOUT 0
namespace {
//The fixture for GenerateMailsToMessageTypeTest
class GenerateMailsToMessageTypeTest : public ::testing::Test {
public:
Engine* engine;
PEP_SESSION session;
protected:
// You can remove any or all of the following functions if its body
// is empty.
GenerateMailsToMessageTypeTest() {
// You can do set-up work for each test here.
test_suite_name = ::testing::UnitTest::GetInstance()->current_test_info()->GTEST_SUITE_SYM();
test_name = ::testing::UnitTest::GetInstance()->current_test_info()->name();
test_path = get_main_test_home_dir() + "/" + test_suite_name + "/" + test_name;
}
~GenerateMailsToMessageTypeTest() override {
// You can do clean-up work that doesn't throw exceptions here.
}
// If the constructor and destructor are not enough for setting up
// and cleaning up each test, you can define the following methods:
void SetUp() override {
// Code here will be called immediately after the constructor (right
// before each test).
// Leave this empty if there are no files to copy to the home directory path
std::vector<std::pair<std::string, std::string>> init_files = std::vector<std::pair<std::string, std::string>>();
// Get a new test Engine.
engine = new Engine(test_path);
ASSERT_NOTNULL(engine);
// Ok, let's initialize test directories etc.
engine->prep(NULL, NULL, NULL, init_files);
// Ok, try to start this bugger.
engine->start();
ASSERT_NOTNULL(engine->session);
session = engine->session;
// Used in debugger fun in order to force wrong key into mail
// fpr = 89047BFE779999F77CFBEDB284593ADAC6406F81
const char* badkeyfile_name = "test_keys/pub/big_clumsy_cat_0xC6406F81_pub.asc";
slurp_and_import_key(session, badkeyfile_name);
}
void TearDown() override {
// Code here will be called immediately after each test (right
// before the destructor).
engine->shut_down();
delete engine;
engine = NULL;
session = NULL;
}
message* gen_outgoing_message_template(pEp_identity* from, pEp_identity* to) {
message* msg = new_message(PEP_dir_outgoing);
msg->from = from;
msg->to = new_identity_list(to);
msg->shortmsg = strdup("This is a canonical mail from someone to Alice");
msg->longmsg = strdup("Fa una canzona senza note nere\n"
"Se mai bramasti la mia grazia havere\n"
"Falla d'un tuono ch'invita al dormire,\n"
"Dolcemente, dolcemente facendo la finire.");
return msg;
}
private:
const char* test_suite_name;
const char* test_name;
string test_path;
// Objects declared here can be used by all tests in the GenerateMailsToMessageTypeTest suite.
};
} // namespace
// Bob is intended to be a known pEp comm partner to Alice.
// Sylvia is an unknown pEp comm partner to Alice.
// Carol and Julio are known and unknown PGP comm partners, but those have to be generated externally, through, e.g., Thunderbird.
// If you need to do things like write out new mails without attaching keys and stuff, you'll have to do it through the debugger
// and change the structs by hand during runtime.
#if GMTMTT_WRITEOUT
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_unencrypted_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAliceUnencrypted.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateOnlyPartnerIdentity(session, TestUtilsPreset::ALICE);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_unencrypted_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAliceUnencrypted.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateOnlyPartnerIdentity(session, TestUtilsPreset::ALICE);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_OpenPGP_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_OpenPGP.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetOpenPGPPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_OpenPGP_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_OpenPGP.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetOpenPGPPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_1_0_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_1_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 1;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_1_0_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_1_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
int alice_major = 1;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_0_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_0_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_2_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_1_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_1.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 1;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_1_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_1.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 1;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_2_bob) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_2.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 2;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_2_sylvia) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_2_2.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 2;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str());
ASSERT_OK;
}
/////// No keys
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_unencrypted_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAliceUnencrypted.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateOnlyPartnerIdentity(session, TestUtilsPreset::ALICE);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_unencrypted_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAliceUnencrypted.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateOnlyPartnerIdentity(session, TestUtilsPreset::ALICE);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_OpenPGP_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_OpenPGP.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetOpenPGPPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_OpenPGP_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_OpenPGP.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetOpenPGPPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
message* msg = gen_outgoing_message_template(me, alice);
PEP_STATUS status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_1_0_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_1_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 1;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_1_0_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_1_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, false);
int alice_major = 1;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_0_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_0_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_2_0.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 0;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_1_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_1.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 1;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_1_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_2_1.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 1;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_2_bob_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "BobToAlice_2_2.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::BOB);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 2;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
TEST_F(GenerateMailsToMessageTypeTest, check_generate_mails_to_message_type_2_2_sylvia_no_attached_key) {
string filename = string("test_mails/CanonicalFrom") + PEP_VERSION + "SylviaToAlice_2_2.eml";
pEp_identity* me = TestUtilsPreset::generateAndSetPrivateIdentity(session, TestUtilsPreset::SYLVIA);
pEp_identity* alice = TestUtilsPreset::generateAndSetpEpPartnerIdentity(session, TestUtilsPreset::ALICE, true, true);
int alice_major = 2;
int alice_minor = 2;
PEP_STATUS status = set_pEp_version(session, alice, alice_major, alice_minor);
ASSERT_OK;
message* msg = gen_outgoing_message_template(me, alice);
status = vanilla_encrypt_and_write_to_file(session, msg, filename.c_str(), PEP_encrypt_flag_force_no_attached_key);
ASSERT_OK;
}
#endif

+ 117
- 10
test/src/TestUtilities.cc View File

@ -484,19 +484,26 @@ message* string_to_msg(string infile) {
return out_msg;
}
PEP_STATUS vanilla_encrypt_and_write_to_file(PEP_SESSION session, message* msg, const char* filename) {
PEP_STATUS vanilla_encrypt_and_write_to_file(PEP_SESSION session, message* msg, const char* filename, PEP_encrypt_flags_t flags) {
if (!session || !msg || !filename)
return PEP_ILLEGAL_VALUE;
message* enc_msg = NULL;
PEP_STATUS status = encrypt_message(session, msg, NULL, &enc_msg, PEP_enc_PGP_MIME, 0);
if (status != PEP_STATUS_OK)
return status;
if (!enc_msg)
return PEP_UNKNOWN_ERROR;
char* msg_str = NULL;
msg_str = message_to_str(enc_msg);
if (!msg_str)
return PEP_UNKNOWN_ERROR;
char *msg_str = NULL;
PEP_STATUS status = encrypt_message(session, msg, NULL, &enc_msg, PEP_enc_PGP_MIME, flags);
if (status != PEP_UNENCRYPTED) {
if (status != PEP_STATUS_OK)
return status;
if (!enc_msg)
return PEP_UNKNOWN_ERROR;
msg_str = message_to_str(enc_msg);
if (!msg_str)
return PEP_UNKNOWN_ERROR;
}
else {
msg_str = message_to_str(msg);
if (!msg_str)
return PEP_UNKNOWN_ERROR;
}
dump_out(filename, msg_str);
free_message(enc_msg);
free(msg_str);
@ -937,6 +944,106 @@ PEP_STATUS TestUtilsPreset::set_up_preset(PEP_SESSION session,
return status;
}
/*
static PEP_STATUS set_up_preset(PEP_SESSION session,
ident_preset preset_name,
bool set_identity,
bool set_fpr,
bool set_pep,
bool trust,
bool set_own,
bool setup_private,
pEp_identity** ident);
*/
pEp_identity* TestUtilsPreset::generateAndSetOpenPGPPartnerIdentity(PEP_SESSION session,
ident_preset preset_name,
bool set_fpr,
bool trust) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, true, set_fpr, false, trust, false, false, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
return retval;
}
pEp_identity* TestUtilsPreset::generateAndSetpEpPartnerIdentity(PEP_SESSION session,
ident_preset preset_name,
bool set_fpr,
bool trust) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, true, set_fpr, true, trust, false, false, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
return retval;
}
pEp_identity* TestUtilsPreset::generateAndSetPrivateIdentity(PEP_SESSION session,
ident_preset preset_name) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, true, true, true, true, true, true, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
return retval;
}
pEp_identity* TestUtilsPreset::generateOnlyPrivateIdentity(PEP_SESSION session,
ident_preset preset_name) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, false, false, false, false, false, true, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
return retval;
}
pEp_identity* TestUtilsPreset::generateOnlyPrivateIdentityGrabFPR(PEP_SESSION session,
ident_preset preset_name) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, false, false, false, false, false, true, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
else {
retval->fpr = strdup(TestUtilsPreset::presets[preset_name].fpr);
}
return retval;
}
pEp_identity* TestUtilsPreset::generateOnlyPartnerIdentity(PEP_SESSION session,
ident_preset preset_name) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, false, false, false, false, false, false, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
return retval;
}
pEp_identity* TestUtilsPreset::generateOnlyPartnerIdentityGrabFPR(PEP_SESSION session,
ident_preset preset_name) {
pEp_identity* retval = NULL;
PEP_STATUS status = set_up_preset(session, preset_name, false, false, false, false, false, true, &retval);
if (status != PEP_STATUS_OK) {
free(retval);
retval = NULL;
}
else {
retval->fpr = strdup(TestUtilsPreset::presets[preset_name].fpr);
}
return retval;
}
int NullBuffer::overflow(int c) {
return c;


+ 31
- 4
test/src/TestUtilities.h View File

@ -100,7 +100,8 @@ public:
FENRIS = 21,
SERCULLEN = 22,
INQUISITOR = 23,
BERND = 24
BERND = 24,
SYLVIA = 25
} ident_preset;
static PEP_STATUS set_up_preset(PEP_SESSION session,
@ -112,7 +113,32 @@ public:
bool set_own,
bool setup_private,
pEp_identity** ident);
private:
static pEp_identity* generateAndSetOpenPGPPartnerIdentity(PEP_SESSION session,
ident_preset preset_name,
bool set_fpr,
bool trust);
static pEp_identity* generateAndSetpEpPartnerIdentity(PEP_SESSION session,
ident_preset preset_name,
bool set_fpr,
bool trust);
static pEp_identity* generateAndSetPrivateIdentity(PEP_SESSION session,
ident_preset preset_name);
static pEp_identity* generateOnlyPrivateIdentity(PEP_SESSION session,
ident_preset preset_name);
static pEp_identity* generateOnlyPartnerIdentity(PEP_SESSION session,
ident_preset preset_name);
static pEp_identity* generateOnlyPrivateIdentityGrabFPR(PEP_SESSION session,
ident_preset preset_name);
static pEp_identity* generateOnlyPartnerIdentityGrabFPR(PEP_SESSION session,
ident_preset preset_name);
static inline const IdentityInfo presets[] = {
IdentityInfo("Alice Spivak Hyatt", "ALICE", "pep.test.alice@pep-project.org", "pep-test-alice-0x6FF00E97", "4ABE3AAF59AC32CFE4F86500A9411D176FF00E97"),
IdentityInfo("Apple of my Computer", "APPLE", "pep.test.apple@pep-project.org", "pep-test-apple-0x1CCBC7D7", "3D8D9423D03DDF61B60161150313D94A1CCBC7D7"),
@ -138,7 +164,8 @@ private:
IdentityInfo("Fenris Leto Hawke", "FENRIS", "pep.test.fenris@thisstilldoesntwork.lu", "pep.test.fenris-0x4F3D2900", "0969FA229DF21C832A64A04711B1B9804F3D2900"),
IdentityInfo("Cullen Rutherford", "CULLEN", "sercullen-test@darthmama.org", "sercullen-0x3CEAADED4", "1C9666D8B3E28F4AA3847DA89A6E75E3CEAADED4"), // NB expired on purpose
IdentityInfo("Inquisitor Claire Trevelyan", "INQUISITOR", "inquisitor@darthmama.org", "inquisitor-0xA4728718_renewed", "8E8D2381AE066ABE1FEE509821BA977CA4728718"),
IdentityInfo("Bernd das Brot", "BERNDI", "bernd.das.brot@darthmama.org", "bernd.das.brot-0xCAFAA422", "F8CE0F7E24EB190A2FCBFD38D4B088A7CAFAA422")
IdentityInfo("Bernd das Brot", "BERNDI", "bernd.das.brot@darthmama.org", "bernd.das.brot-0xCAFAA422", "F8CE0F7E24EB190A2FCBFD38D4B088A7CAFAA422"),
IdentityInfo("Sylvia Plath", "SYLVIA", "sylvia@darthmama.org", "sylvia-0x585A6780", "0C0F053EED87058C7330A11F10B89D31585A6780")
};
static constexpr int PRESETS_LEN = sizeof(presets);
};
@ -190,7 +217,7 @@ char* message_to_str(message* msg);
message* string_to_msg(std::string infile);
// For when you ONLY care about the message
PEP_STATUS vanilla_encrypt_and_write_to_file(PEP_SESSION session, message* msg, const char* filename);
PEP_STATUS vanilla_encrypt_and_write_to_file(PEP_SESSION session, message* msg, const char* filename, PEP_encrypt_flags_t flags = 0);
PEP_STATUS vanilla_read_file_and_decrypt(PEP_SESSION session, message** msg, const char* filename);
int util_delete_filepath(const char *filepath,


+ 107
- 0
test/test_keys/priv/sylvia-0x585A6780_priv.asc View File

@ -0,0 +1,107 @@
-----BEGIN PGP PRIVATE KEY BLOCK-----
lQcYBGC4/OUBEAC7gfw5I8zWmpuWYdKy3YdawmpRhNl10lNhAcZ4d0ZrM5b8Pqes
fW7mG1+K96ytwfKvsiiQXJ+Lcvtj0qIQNm7bSz4AS9t4dr/4R+0Uqbl84lTDiP7g
UBhmSLtDa9MzmP4YvCrTQKi1J8oRY/hJV7e+fCAAZUL0/vK54Q2ic1u9guI967xu
qA6D9aR4y+9VQDWf7WDfHbgcZNOevFRLyUdsNVgoTSJmfC9F38N6oNnozAUAMFnw
eEFNrQpyOiUXndFoltD+w6iOIzgi5fJoBtsBIRRf+TkpMp3BZRuCcsd6fiF4/GkI
HMIpxiP0kEj6Jg3kES4ZjNOCyla5Np7H8Rv/xdFUdoXbr/idAkDD4PE3qWZC2qvq
ERyCi/om2N/jOie6VXmLsaqFBK5JM2qMS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UF4UrtP8zw+8XB86poTr3eoJorWh/IMA/4jPkDify7JQDe
Pj+JhM2oYTKHoEF3PERuI3E4TN3cBVHdxL5jMmNvPqTFrHShXcvJTjYavS/LQKWC
oX6wHVd1GMpP3uf7fvGUKgQjkqIen868o5UPoAceASoHABEBAAGJAjYEGAEIACAW
IQQMDwU+7YcFjHMwoR8QuJ0xWFpngAUCYLj85QIbDAAKCRAQuJ0xWFpngHvMEACp
pXy6J9p9BrZ9qsifCWGyl3+m3lQ5IdfjcToKh2wRPX/vyYkWCqShlkuN4y1E5Cxi
VX6514toGdnrqZxrn3+d1rrv4qaXnbiPb3UeVBN767wGunCRT+nuHkmfc3D/NDph
2BXiUHtvFcc/qxtVCqkR6K/E1D4i/KHD8MQvcNv0klam8EOp+N1nM64EUKk0JM+Y
EA6L7nHxffiANSFVzpNbfgppiH4w8DawubAwzO8n8JliMnIejNm9Z6A/1nh0ev0S
I2RQnw9/uKkn9x3ZUvTltJVPzIdLvKBtgfsXuyf5EuCJH1KGZjU3Fh+y8hkAzWm1
rSWw8MjfjbygEsGIaC6lK5yU39HkFt0xcuYUeMbjB0h1u//PM+QprREeTIm3xMGj
vQu/r3Ewl4pfWJ1I9l2/V44Z5fwxcMCRhRI1NrKC2HswFwOMpElZ/yd17aeXneu8
no2dXbDQeBL+Q1dZsz1XBIBKLkoS1wEfahPNOaqXOp7hxZNMjdfKXFQelQqpu1zI
vxZi/ofoSTywmjigrC7Mq3PDuvNgJWzndmOnwdCc/BD8QpTpZA01NLUACkMXa2ik
TLH6ljjGYqaJjBQV4IDGUo2U8Q+KHXkJ+iNCrr48rQB2xpxHx1PC/WF0OQHXHNVD
lK4NkLGpMKEvbOgZryW5TqlIqxDUfdDqR8LPeRgRIA==
=+42j
-----END PGP PUBLIC KEY BLOCK-----

+ 50
- 0
test/test_mails/CanonicalFrom2.2BobToAliceOpenPGP_NoKey.eml View File

@ -0,0 +1,50 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="1ab1a98f4371002878f6ebd414063add";
protocol="application/pgp-encrypted"
--1ab1a98f4371002878f6ebd414063add
Content-Type: application/pgp-encrypted
Version: 1
--1ab1a98f4371002878f6ebd414063add
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf/TKQhJ1ediKZeBfX7h6vkl1eyUdDIOWWfKojHStzzvIvp
EZ3AQ9PV5nO0nDtZZA2QwRBRk5Fuzc15A7+Fv31Q4iU5KWoh0u4jHwMb8Cp/UMAB
IEwBLxWK6vcs4DEynBAOkXOs38mwEYVkVy2zw3axvjpfBMqCukw+Q7s6ahca7VIU
dBvb/DbmDojOzJJ+lR9Z74zzMCDrjvu4iNIfA0wxMwHk7OG3A26g2Bub/l2VWB3o
9l5NeuynkrWcXq/G3YS/1nMiZxQmw7oolY9qItZ6IPvE/6qqHeydCdYvcam2ViSH
FBKlmDug4pJ43gF5EK/b8D13N2o1E7T/jD7e2w19FcHATANaAgXZcwg/TQEH/RGk
HXM8uoPQlJFtt1yA+snC3m7K+qyABjvzeT25IdpgyvPOHPPA9oVp1Hv2vtzE+JI5
qwo2U6WtyTGxysIbg33GDGCjph6Ix3YzMvxRjeF944YBt4GP0JtTbWVcOcJ6rS1/
4UHEwNdO69RElOVNdqM4s2oqqJv8yXdl9exR8tAaZIqVU3O9GWcXmqLtdlnA7Ody
5cQUI4+vtewlofsqWP2c7DolixLZgVl0eJLbkBHcG0rHqk7paZXietDETr9dC2Zn
0VSEwgaP5HC/M8S6/oEGz5erhHVblff1qxTj8DhAcHuYZyXX7SR4bddZj38ronjL
0zwS7zeceS3AAqYtcJzSwiEBd51eCRejJd7IkDzVstYDH4u4LwOKMJGPofV2WBCV
1xAJ3XogN2hu0HrkOLBtAaCzKo/9SPa30tkgFLNyLskoHu6Ryk6H1vw3fkbIjvgF
OG2bDMhvzoMg/Fe+Y09C3FvNQ6772gVSgLx3tF7Qx6CIyMFt6vkUjvoCMpyuFdq+
rbqB4qf+woI4tDPoXq5dCZncEQheX4KteTp77L+Dktf8cib7wRU7+NRlhYb6eeNe
AbdbX/FX9y3Sn0MN1E6yqpTrxkXMb22r+R//3vGVlLQCtYS28bzRh+s0tfbCXjzX
lLusXjGjaw6LIZcY7JMJ9vItSAoblYCj0YvJSbLZUVdDoqHmSJSXdlB9fEdSPS2a
KaHtSiOWxKit7wr6Uk6MMGujKKNkiPtEAuo+LhiUya/D/wC25ln13oBGMCPW7aEr
ywx+Hrk7RlpXBM2HLgoPgSKBDdyP4a3JUssGttErme3ro4f2Vofo9ZSJ6IuoVfVz
OUjcoAlDv0zzLycL1jMTY4DncVgFS1o2lVIRajK+XCcDw/fmgNgZ5bBuWMrylJGx
NChl6ilQFcdPTh38f2mCJAg600uxFC2psVPXLlYYN90q09OlfrIVY6R4WIyHePHY
EvKtRB4hYs2j+gGkgch/+oZ3nXG/NfrqmK8gELAsLX7/hY+lhJ3u21t//GLAHQyZ
+5A1guJI+zYj27+S2VyfDNA93Lwvax22KNvHaBaEjqgqGl3kMiy2OklHhl9TX+xR
MupGqBf/CQcRDpLZru40VbPYhQvGRcXvHMfZkrSkeLM4WJ8ko5KfTCuIQRjEZt/9
3QECCnewnbyK5OE82wlMr0M23J5BT8/M7ofs8f1sLP0W2VuHs6A8DZWKwjjA23C5
cOksznRgQ+gsylL6NeqajUZ4juzuMWz88uH55Kign7dEov0HaDXDFGOjgJOXV4oD
MJCB7hBAzJMeZTWdCgUquS5S283tir9hT3XjD6S5eN7p4w==
=mEEA
-----END PGP MESSAGE-----
--1ab1a98f4371002878f6ebd414063add--

+ 12
- 0
test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted.eml View File

@ -0,0 +1,12 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: This is a canonical mail from someone to Alice
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Fa una canzona senza note nere
Se mai bramasti la mia grazia havere
Falla d'un tuono ch'invita al dormire,
Dolcemente, dolcemente facendo la finire.

+ 12
- 0
test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_NoKey.eml View File

@ -0,0 +1,12 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: This is a canonical mail from someone to Alice
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Fa una canzona senza note nere
Se mai bramasti la mia grazia havere
Falla d'un tuono ch'invita al dormire,
Dolcemente, dolcemente facendo la finire.

+ 54
- 0
test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_wrong_key_filename.eml View File

@ -0,0 +1,54 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: This is a canonical mail from someone to Alice
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="7ef49593a145ea23435db6c69e906e2"
--7ef49593a145ea23435db6c69e906e2
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Fa una canzona senza note nere
Se mai bramasti la mia grazia havere
Falla d'un tuono ch'invita al dormire,
Dolcemente, dolcemente facendo la finire.
--7ef49593a145ea23435db6c69e906e2
Content-Type: application/pgp-keys
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="naughty_filename.asc"
LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgp4c0JOQkZWNFBsOEJDQUN1dWtR
THdzSGZ0SDVqa1ZzU0w3Q09GaGFtTnNFRThsWjhNRzFmMVJ4NXp0UHVaVG5hCllYeVdPRGdwajJC
eHowVGNQK1ExN0diTEtzZTdUV0Qxazl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VW5SNTV4US9KNTBpSTBjbjYy
dDNiQ1AwVlRabUYvQkpEQmkKQXM2RWVKVm5HQlVvU1VET2tFST0KPXhyM3kKLS0tLS1FTkQgUEdQ
IFBVQkxJQyBLRVkgQkxPQ0stLS0tLQo=
--7ef49593a145ea23435db6c69e906e2--

+ 53
- 0
test/test_mails/CanonicalFrom2.2BobToAliceUnencrypted_wrong_sender_key_attached.eml View File

@ -0,0 +1,53 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: This is a canonical mail from someone to Alice
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="2baaea154db352c624948e1d2997ab91"
--2baaea154db352c624948e1d2997ab91
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Fa una canzona senza note nere
Se mai bramasti la mia grazia havere
Falla d'un tuono ch'invita al dormire,
Dolcemente, dolcemente facendo la finire.
--2baaea154db352c624948e1d2997ab91
Content-Type: application/pgp-keys
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="sender_key.asc"
LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgp4c0JOQkY4NlRpMEJDQUN6WXVa
TWlqdERLVTIzYXljNXhGK3ZSTXlBUGpvZWZtSzc4Tlg2YnVHMDFiTS9FOGd1CnF1T1ZOVEwyY1Iy
Si9sOVNiZ3dRWFB4bzdVdk5pa3RPYVU2MGpGNU44U1o4VXN0NGJqN1JoTWFCWnluemVhSXAKRlYv
cmd6SzVacUxxUFg0OWZ2b0tFUjFsUWdsd3R6cjNMTzRseGJnTkZtYXFsMmRRYUNsL1hWUFdNWkFu
OEVwRApoRXc3SURCdFg2R0tDSGF0Ti9sZEx3T2tCUFFraWlWZVE2QTdGSmFkRmFkWmQrS09kTmdF
VHl6Ymw2V1RBRHh1CmN0c0JSOVYrWlVkZ2FPbUovbng4WFFLMVJPNkIyMkFNeGl0eHNFUzhaV1hq
V1dvOG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a3JPbWhFTFlsMGxsOEhy
RCsKYmp4TmRnWk5PZzJmUG8wKzFUYjRUZ1lOSXZNcGtXajRUTllIQkhRSTd0ZVhEOGJ0WDVsSDVU
M3NFKzYxR2RFYQpmeDFFZGhFcEpjdEIwRUxVejNhYm9RVk9KdXlremRNRCs4dFR6TWt6TnozU1RV
emU1UHJ4MnNCMWtPZ3JIcmh3ClpnNHlEd2xrTTRzYVhQc0FFUUVBQWNMQWRnUVlBUWdBSUFJYkRC
WWhCSWtFZS81M21abjNmUHZ0c29SWk90ckcKUUcrQkJRSmdwUGtGQUFvSkVJUlpPdHJHUUcrQm1Q
WUlBSUxtd1V4V2FBU0pMa3pXZEYwZVA0dW83S1pDdmZZNQpHcXpyeDViY2xGT1VSYkVYemZTTzls
WXBzb2I4VnFaTDRmcnl6WnJwY0VvbUFwWnZ6TUxBdVJ6ZXB4UDZGbEpHClEwdEs1L2hXb2ErQjlr
VG5VZkw3amMvNkdWWlRmUWVrRmo0ZTNWRVplN3JjUytpYitKVVlpa3NWRkZaK2dMcGwKZTFTaGo0
TFFBMkUybnhoNmhZUjdzT0Njb0xxYXZ0TXJIT005dnk3UGc1UUdPQzZLZGhEQzJnSHZlWTUrVzc5
cApCRkNnRVhYNitwZWZBbGo2WElHeGtqaDhUN0ZwNEpZcU1aMlRlUG5oUkl6TkJ1SkM4NTRNa05B
YUpSQW8rZFhWCkJ5Wm5wMGl2N21Kc2FaZEs1b0E2YWQ2VWtkNGMwRWdNNkhJZSs3RExWNjdWeGw2
eE5vdEgzcUE9Cj1WNUxuCi0tLS0tRU5EIFBHUCBQVUJMSUMgS0VZIEJMT0NLLS0tLS0K
--2baaea154db352c624948e1d2997ab91--

+ 50
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_1_0.eml View File

@ -0,0 +1,50 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="5a254ac466074e4823f1b15325c02da";
protocol="application/pgp-encrypted"
--5a254ac466074e4823f1b15325c02da
Content-Type: application/pgp-encrypted
Version: 1
--5a254ac466074e4823f1b15325c02da
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQgAh9kg1PaL3xTkmbC4257Cyg2eK+OeOSUCFY2+hyXG6/0D
ZwhlTKAvo56OoNRrJTc+DX4UaXGSe8Q2Kc6f+8mBcNHJOYPFhLQQb5tQlXypXCXM
Mq3cXyqZlTqU283JffVonTer3LwCUzwTdezN0WAw0IS9pMy7VjVo367G6VSFstRn
29NFmc5eNooIycVgF0AOJC1tNlKKCBB5A75lGVsXJIHuIejGNy1tjdh+Z7wcKM1D
kQ4Z+zq06GazBq5+4Oynoi9NOe5BXo8FvR19VlFY7fOOBgykvnnGohMX8J246Okp
F2B3xFoBw0ha1fA21s1rM/OfCESX6/DKEFWinptOvsHATANaAgXZcwg/TQEH/0th
el2KSKP4r+7K4frVbUenQ/n0wpYbWrmLZDoGrmHZfFsCpIZXeEzVx4BDfv7IYLTI
ZVQKzd7fiZbwcDRka04bbRA6cZRUl0GCK+Jn+jVeEbzXYe14jlSRsMdRs4H5xLIy
rGfELBrIONvP92lyu/1BpPSRPpMsVxApV2pJuM66bNQRbbXIlLn7UEsCMM5X7sbb
hHUZqFuaMu1VaQlVNW7RMyxFKwYKXZhVswSu/gyb6vmyKBIb37pxQnBF+gTlht3k
SdWIATLgFAKTdUEz87Hvzixj7bFXH/4+0Z/FuvK5VnWNdXv9XVGa0q6baYq16clh
oqCZ1ddakaMFMyqF3fHSwiEBM3sscXbioR5CCLJJlbX1F4SUGP0UmMpihwp+wPu+
NvBHcWZDZWKf46UH1Hml36baOr7zfjYATU4UOAsy7iHXoG0+iJpV1v4yGN4nENk7
40ODqTjBjX5sdla6t/d59+U00ebA5+aZIKC1ZWnqFmnXx7cpHrpQK/y0RlKsc7Sg
ZM7f2jgpgpq3J3cYt3JoOYJFyukWcyE6LaZ5bR7hekxHczrOL0FnCb98xJGue7pj
0hsE5DxjPDOQx4aXWwnmC/ozkZC76eCH1Fu4/WaY5PwCehjUnuCGwc3c9z6bUX4t
JUGX47GVRDodrOIrXVb+YOkr3mX05ez0Q+yyGnwdQqF2yXWAlcWcvqRT/listTwt
WWwu5lRaqEPF4kg/cBj79J9PcQvaSXj9NxbiKXf4vVpE0fjtixZuc5DBUS+iJmjB
asf2esejGFa7Q0oKiiatcxoOFVNYVhur4O85zdolNsllxZ+jnazGBLihsEEq+bg5
hUK9BMtuRVFsmm1QNOrMwMyGQcN290yKx2eH5d72+hP3crE1GVknVxDRqYZ/PyaB
iIbaMEWOA3IcoxrIoCUTf4j+cvvFLZuZcK9xM9GtDez0HQECfSdiFoEW9OjvmiLA
WEkQW06gI8t9/STRo5nVjJBqQU0JJ2jQrPGiTU8RYelEWWKneIbb5oQAsaY6Vi8v
mvGCvoYI8d634jVaKirmf3iOatXuXTRaHeS7GlNLdcaex2+wqhi4JsSMenGo3h8O
TGKpJGESCpDOjR9C7RnYtNGEI3FJhiLa8Cbii+PUBcsx8beBLbO9RL9tip+V2zIF
adz9zFKJdGyVP/xoNMxPF+AYx/s9H/rk4q0mizpbuhfRUyTIBpV5t8K852Pl90v5
cva3iN8+DOdWg/HAFyYcXfeUlhXAWsHZO6lvssPAwWqGSbMIO9oS5wbAPNJciSTX
5L1fXzI/7LTqpwH6Do1HEQNfZNQ8flOTPKU4L0iD+9B+Hw==
=uTX6
-----END PGP MESSAGE-----
--5a254ac466074e4823f1b15325c02da--

+ 50
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_1_0_NoKey.eml View File

@ -0,0 +1,50 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="1dfecef114c8147d142d89d360f81b05";
protocol="application/pgp-encrypted"
--1dfecef114c8147d142d89d360f81b05
Content-Type: application/pgp-encrypted
Version: 1
--1dfecef114c8147d142d89d360f81b05
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf/fwYM5PyP2eNhLWYq+qwtW0+NycGOrhVC9ZbL/iiA8Mqb
SFAj5s7pBkoIgc7w64lUQzZzeMuNnVMA5rHDyaRIYNIptLWYbZmQ+XvGGFFZNmdB
IwIl6+gbbLhNsywFUOWuJPE3CWHE0JinJrMu+H5MfepydWv8rmWhKnLn66PR3BoV
8KaNSvZmYJkg7WnZklx69AmQhuE5LH1w/Dtp0YVO8avvFVqnyFcG6V9LXv870R+/
xBB5V6gWFEHjjEbaRJt/7GPelAWFoTkIoI9RKnTLGWuA0FYf8E3Oyh/9XdjVa4lH
zBhklgJrCjuOJ1gJhnA67nFSbCZiQAlblQiqmY4P3sHATANaAgXZcwg/TQEH/jja
D7uhsSEzcCeeseWBN1nbmMQLspbiHSnVHdOVcF2hBsoeclUD0b/hmjJI3/esbDT5
vbq5agztID+3/sFWh1/qiVaCwveIkM84lC0SVlYFWwlEpetQSv0pvd2x/auWSYH/
T4YyjFJsb+jaCkCyeAn3Mz2xQ6G6eY4b48BxLG8xCpt1MaRpHxX++xdp4BYBxbr8
n2qRrqJSNDlGLCo/BFXZxft0fFXWYrELXba83jOqE7vziUtD/09F21FzWG/kUlLq
UEGKf2SVQcDgn+pAlX3E1vGrcjOHBaixzDkAv4ZVBaUyOohluSREF6Zi+OMlkKi1
2SQqvgCPWMbtzHsWzpHSwiEBEe4W+vLuw+ttNlCXVK8KQwMHgvaUVenZL49oIkLt
FNOyYew24XsX4+iVurMSI2xLJTjYyidXhKj6iFY/sOpOLrvPBS5lNdGNU2mz40ZM
1ncnq1X1eLPBA/aeFyc5M5vpV1m9QGBU357dZCSUi8T5RDUBj/3tZIeQR7vi5ou/
CVC7bB4f114TKyqZ+1DRg7jdSfmoQDGcFGSZ4H7MUkzkk7MGka/T6ViUDgcPhEie
muPmf6xlgOXL5HeqAGJ1Qq2qs5yAJSsGJ3TZe+8XbuaPIcMFqq1B9CQiKnzuQh8H
JcIsceFgXPH/qArhw8XcVu6Sboe7Q6Wrupd9ww/1G2xQ2sPeLC6crjzpI0lMijzj
3Sp1QglMI+u85o1XOCBWVpFikJBzI91ZVsWesNG3ydtL/BPs6GXw+TJ0SiR0tuQQ
4lRt5WFbdnxqmkZQeNH+n/6xRAPfKL9Y38AqgdKDrG1efGo1I9/J0xHria3+plXK
bADv+PXoudT6CgZceLE8lekS261dbTrltVB7IfE1hsWHFuZr+kRR/6BglXKzVBIa
BV+SkppXwQhIpCWE047vq9Cq5GWJxuNmZy8b9ZTnzAE0hT/ctsA2SpXg7SpUbGJv
FR70YooTM+yfzyzY6yGz/lhqh+5oL1IkYN/TXdGPOVyQIg8pzhTQeOnZC7MZKOQF
qhqYHe63doYV7TfmNTCqeOydyS1SIqnjTJAFPwPcShXNLWaHxV/AY/aHC3s0TDCR
F5VXiCZfXCcjbUouSVgwKr6waGHTpf90k/O4s2bxTdnZb+4ClbuwBFmEvqqzwJct
R06fpXvQjseQDeLK4ntDtg+5Tw4kAB+uR4OtftB5aIxE1ntHBbmMg1SeXX3GNSYI
8DzNSF90L2574AagZUiwUut9WXkkfEdyfS9s3pvXT8+uIk5KBQvw40H64Hf7A1mR
y+A8p/6T0la1t3sZcA4xh2TqcctAoTlM++86r6ZM9HiRVA==
=7WMk
-----END PGP MESSAGE-----
--1dfecef114c8147d142d89d360f81b05--

+ 108
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_1_0_wrong_key_filename.eml View File

@ -0,0 +1,108 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="12c5bec4417e1861251a0f87a43d651";
protocol="application/pgp-encrypted"
--12c5bec4417e1861251a0f87a43d651
Content-Type: application/pgp-encrypted
Version: 1
--12c5bec4417e1861251a0f87a43d651
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf/ZNawiJkEu6e1DmAsxCO+8f2c/MKvhR0q9w/CwA1WsaDS
i6s6ZKyskCoo1MBwJ5ykR5vQo+qLribe6l0i1aBhlPy5SRIPeXFGn0tOcna2+tVs
YX5C9d9/zwRdHmMyqeFuF0CPFXoDLF7yUkmvwVTR4J/WxcVWc3Ol4wCnRIduYmXi
xBNBeJB3iGEjK7h+h6eNV9Dun5/W8womcU47IDs+ghrvZsRy2gFgbHot3k6pmqWq
/FaSoiG+pXFQ8xT7v8KaRrQ0K8hN4irkK0Mea++H52pr4bDQCptwQFxL19fZ8sFJ
NxBJnvxusCtrlM354Q0jIwwFrjDzROpw3Dmjs9CGxMHATANaAgXZcwg/TQEH/0yR
ij2sV+cUlJo8gOTBEEMzf1e+n2ZlENOXmHUqs18Yq55F3Cjm0BCoMfk6yqEd+kfh
UxlJDg+BikfEXAwO4f+MtSYv04HYYdQXNH+ORWPM2+hlgk9ffA0wmba42xuubvQV
7ShVs/e0VJPMI1u0V0crKmAvx8wXA78mIqenWQD0bHv1L697nHrThW3fFqib0mSh
2qnRWNe82fr7n8QORdqT6MCuttsKuUhkkPdcTa2v8rn7sht7DLZs5X/1Z5ppHeuU
iNNc7SzBttnGH/+ai7cPZFWfpIDK2jZlHljc6vjHVLy6FLvykYITK64waZ3lWSNX
tHdFu7AgWR/Gu3ETQfzSzPwBLKNGSq7P3A/azQmwrD6/B04xJ35Pwk/KlxZ74UWC
jiLRhJhHEQHVqzjwaOjTamFyrOyve8LukfnblV2pKktfOha3Hxpd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d23eK/qMjAHzTerfa1HRsLzmGRWBzz557r3697tlNnldtGo
xv7kBGucd7D6NbLDwFRBao7gOhQZQo7CsExxbu2ScYYeMc58462blFfiCvUEApPC
buJBbU9bPP4ROLeR3l5kc6nGAAr8/MUqv6HjIPLujYf7ISUeU0I/H/HOUU1+VaRG
CgGMR+YJ59uqlrufE6k4wbgdXUn2ymBhycOCK6JWna1K0jhDd+oBzN/9lDXPH+/N
fsyfx/FsitLJo+o24MjRnaES0l45pTZnz4wvfjR2yBzeghJ3losMzTSIyqxqboTi
sRdsYDKruYJOdH7nSJDVBCc1Jpmr+eu0Mh6e75U=
=goVZ
-----END PGP MESSAGE-----
--12c5bec4417e1861251a0f87a43d651--

+ 107
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_1_0_wrong_sender_key_attached.eml View File

@ -0,0 +1,107 @@
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="1f5f53893258c9c962885db66281513f";
protocol="application/pgp-encrypted"
--1f5f53893258c9c962885db66281513f
Content-Type: application/pgp-encrypted
Version: 1
--1f5f53893258c9c962885db66281513f
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf/bXLxJqaV22S2QQZe9aXExt48MAmOPw2k+hbV5YzDRY3d
dxwlatcsB01CCXu5c4QkrXrpaiDXo7oq3VBsrUK3cuUcQIV9sDlKcuCmzldisP00
7To7nH6+9imVP6qNKP0dAMIe9FMB0INYOL1tIRC/oacICulwZueDbKZ19aaapJs8
yu15psZBJdKw75SiFOTdM9uA1+EOX2+/o8lIG3/NgY7yj31f8lzePmKOZauZOga7
yqfpjAqKByGgmgU5ioFFCnUE0Zv4g/OEB9os3w0C6nQ7FabCJYtTnbplN+F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Wap+SZalTAb4j4MYDZnvLJGfLChKZbA+IJ1+m0M
x88296o8zlc8UIm6BijRXmTVvr1ev1pGAqi5gUeelzKawIhFr64JCrgHI4Io+UWq
hmJN+nFu7edduAncFprI7kINbzRC3um7+4bLt0VuvN/SPBDEDiiZRqEKrRGltp3k
rVWJgBs1AF3sT6uroCy0CyxCEZW/ylkXICW9B0Vc7iiiriMnDfIVc7GGveu12iod
7NG1YA+axGTN32VX8ct64rt4arKuEYg663RAd0biqLkewa9+p3KVlrlwgImv2UmF
aWLtbI1yKbOMcgQyeV5Ety06buh4qA3hpd+JWPW1INM+OJkjZD0cSouS1lL+tZRh
ASz0nfiysWaw2XfyvAoctxB/IAYe6CXqz3usFVlZRYgJh1/ZYpHnxBcFYvkcwons
2E+SUiqda40QcQ37DbFE4vyul0CLL/6z2q4sFYKdPOQ5ENDPSnQkEz4jaidNnneY
qP3q+hUm96Izx3bK6QIeL6qrg9yhaHLsON06NlfmN+M9iLT2aeP/dCBK1DKBl5YH
DVPZ+LzWgCKRfKmhReGxYhz3PaQhMK6ETJlAeUB5pA3/klVC5zJJz5yfFCPt9t9+
3WTq16NkHsTwzRcT3ApkBf+ZYPSgqcL4YHvLejU1pedy+3Lwmp255ZdO0TaGjsF1
EqXOFSATXPE3gLhBoxEbfdGfifAKDcD4zrwk/3L67GP/BpQAC2NyzNqJSNf2pIzr
QlMgeiyFZ4jPzURE6VcsfdxjOBXDitcOjg4HGfuQLMh793bRfsyRwQ7R9eHFkVDO
xsQCYrD4hzeX66a8SgHAXnZgpJ5SkaXoCj9R/H8=
=UKRd
-----END PGP MESSAGE-----
--1f5f53893258c9c962885db66281513f--

+ 66
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_2_0.eml View File

@ -0,0 +1,66 @@
Message-ID: <pEp.QU52UD.1NRTPOIU8WPW5.52F885DE-7922-4DF4-95A3-06E4AC7EC458@pep-project.org>
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="23f474a847be193641d81def41840168";
protocol="application/pgp-encrypted"
--23f474a847be193641d81def41840168
Content-Type: application/pgp-encrypted
Version: 1
--23f474a847be193641d81def41840168
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf+LPXIVFcv4fO/DboASdOE0ftdoG7ojNKGmJhsn3G8+RbM
2NKppsSHwzySSt5ovgYf9Vaj8Vc/cAs5vg+iVqhBZ1NLpshkymM9ZxFHtkP0em3T
S7Rz2a0lx3mpckHm23A4QNet0OUe7X9TTmVOf3/9ZReHTA+nhxIpQ36DF8/9ITLM
kZo3YQ8COcPAgMJzyFiO+eCz3ZtFfJXEEUIRHINLBoFVW3930q1uHdDQee1iWA77
XspkbV2EGU8O0IzUWXzEcZvfz+RLvrmXWJTtsh342vKiFHPEmx5PufOjSQ3brA4a
MRtnnp+fzutfX7ranh0be7pJ/7t+eaBbNVWyz/w8XsHATANaAgXZcwg/TQEIALE3
8u9OF6jRz83YJoGQ4L8QRLOA94jiqbVe+RpO++SDCPPjxasQDzaGJ86yzCs27bY4
ly/ndyLynXlvjGddcAvGdhcazZerhxu+lW5AuEyTgcZ7V9XYrE45ij8x/D+jK+/c
3dSCbwe6wbP8dsqpQCXwB+NBSaABluyDBXBok8nrifcYDEeieH3aXTjINTcDQvcd
u8Pfw2KgaZbQJxLmUWZmMffme8IKJaZAG3GgMf/A06BXm8Nw5IRAiMfKGL/fLDov
clipxAWQY2CYElfTgHgdo1SldDlJH8uBQVciYYNdbKNqicy61WhJkUNCiBIED79X
GpnPH1ecR+PJvRK31ODSxPgBfEDPO+ajeTCFnC6QoohvAbEDLkgu7GgTuGFokjG3
K10Z0SobIL9rMN1koqmWUQlovd2g8iuB6AYhX64wjz00j5rcWGY7xMcgcoO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Dm3XWAhPXn1ug
p5juOeag6ZxryIQbOR+hFNol7wJoF0ozmmiZVxT/zqzayMbs5PnyQuu4lTgaMeqO
q8PCN9uf4zp7qPfr+DboWilzQIDjYeE02cClW7d2eFu9zpd79iDTYvRi5lxACAw3
xRjQ3DYqDF9K2yT+uekZf2RrlKmlcP9YSg3HVdDwML6pGOMwaFMya1ReSK8P0MxU
NBhFHzTu82+Q7iZT/J2euloAW+IxYabp7NaNmSe/Rca5qJkHR/N9bG7Qc0lnPDWK
uZU7352jzqCUVt19Ck1tHROK4ZgyrsftffCtG+8JtuflL4cbmcplwTRC4YQG20Ox
AifttJNbXL8hdNhq+HDQnv1PWvCOg+qLhKpIEljx6T8YoS5hywkXky8eRbTwI+lr
Y1qEAjPSlWmfHqiA6yOUWJWkkWoJtWLfrXJi9Xmh5pzbugTPGaUZH48Djp5ZFT98
EG8G1utoILodrnFM9D++pbB37ZsUPu2QS+3nFhmvD+kCRMMQ266AcGrG2smDO0hw
dI6qq4ZXZ6J2kbJCiPGth1slANhapQFxN+crGB1auHgC0IPHHm/x4T397S8G8sRK
GpOeJjmhTS5gsjE03yRBX1+OV5FgGUIVyMzw+C/q0IjrHdsCmD6nuDtYQPKv4toQ
0bLy/J+pBnxcm7HHUJfzUMTd7dsIeMZ43apFW9pu6dasDx1Fzp9Oc3LaYoXJeobo
SdhGSzqDoWJsjDrO8wXE2kjbzyFW1cRyh+GNH8J1Wfuds55tjrZW2m8=
=50os
-----END PGP MESSAGE-----
--23f474a847be193641d81def41840168--

+ 66
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_2_0_NoKey.eml View File

@ -0,0 +1,66 @@
Message-ID: <pEp.QU5057.182A4YAQUC7WP.C42C211C-1065-49E4-B977-5176AFD14AD9@pep-project.org>
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="3d1ed8b573fcb981ff748e753a3e3a8";
protocol="application/pgp-encrypted"
--3d1ed8b573fcb981ff748e753a3e3a8
Content-Type: application/pgp-encrypted
Version: 1
--3d1ed8b573fcb981ff748e753a3e3a8
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf/cdwI549AMbZ0B2P2C2lrcD5i6O/bcYicIOHiyzNmHSK4
CQ/as4zuBBjmoZ760oI8sihZV5YOrOH/iqgD982yI8bcpM68gnOCFid/VRWCHo1k
yZkgCzlMb11l7AQ1+1smYQJX7vGjeoE5FxJJpAsNCHt87vtYpWslm6cZKnXh/t7N
E9KXfOPo+IpJrlG5ZINK2hohPLxSZlWguINhyISFFnLLhlmY+mxMdFfpbMbw6BBg
k9iyQxgWmy4UfyAMSiO8HM5ChpSpqDS6+xcocuT+uE2+lKOaT4C8fgHXHVIg8iBx
l1bRShXIIk7LkE4GI9eBctRV+Pe/KtHp0z+y567bpcHATANaAgXZcwg/TQEH/izf
WymBxFSavZ/RqDiSIac4TWQlDVE0SMYETbp+vqHI5OBhtBDQFcu7WfpwIHkxuDgy
IrwwcPeM11rcQ/sbDZ9nJ9PioMrgof60r7Etv8jaUR3K7l2M3eyrCn5tgrOZIp+e
UQafZSwK6rThVluVMUsxt4RPzT6cFLmYmlfAzL72Ea8XDJHh9zZVadelcK6wCZeK
lqEiDSImt2qkIN9NBuZAdSFdVwi1CsdWp9vIHlTWRQJL4z/adL0Im3fRcqHJYZpV
zjKOOPxPDtgZI9GxW+vvvD7yxqt6e54YyUf/ayZlR+oAgovkgOe0N+rf4OWUhQqb
HivwB7evuVvdNKC/Ok/SxPQBzzFMgpLdaH0ORwDJVwSyHMLnyrJ8GVk8NrMSPRxG
8qEMmUCFlfeiqWtOih+oSPGkS8jdfXlBeYz1UIYRLCrYoRhkmmiqzhcLMiarCJp4
VNe/mg9G8bujLTZken6Ibg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fJQkhGY2xX7JTyHeDiOcIWKKxFJQG3E6Yq78+YzY4/xuR9gz
10oqXiKwz8gRobM0Qk/SQgYynP4OAQ2F77Ox1KoqQ9UU6qkeZhDVR2ywpsa6Kc/6
H+X8Obxt+DZ5nLS1IYbyHe4EMfzXuUa/ZJHXcnDEgqpOcZpgEGyrD2HyJ7miKy3P
5Lo732bXf1YuxugU9BiS9B8ZcslzOjNhwDa/HqkMPUpTQLVU8V5By7/1FbrLOSG5
lIafjd4e0AbJ0O7vqh7P7f3HnQLEHUn7ys0V2gNDOwfG9DPscUj8D0gM98pkjsNZ
lI908WfCfXRRnZ479DMMNMbNSjNMuMLqJYjd1fI9gvMW5cvYEp4F4geMogvDbvCh
kEHa4QHVrkqYsqziGlCxRlRHFbjYBOqWtu4YZA4kYdRTfh4Pn/qmLaZx+2uFrJaJ
jNckWn5mWhB6ptovCizRZqzf+evrk4IkQ20oCriV/rVNO0ubUt15+C9P3JTSEm1p
gu/no8Sact0c5m4VB02f1xI2tGYr1RztOvYHUcRyMfbcn4dufZk4LoBEMK54npo1
lw9mxAJF2KOPjk8pmKM0PMYn6rVQQK2gg62qC+5Er3bZbFFs6vn3VkuVwgFBcMhZ
F55l9a/qgqJkQN9WamcedheYKoU1Q/Uw7xVdStMklTZHYmf7fU5yf5eX4QUYWRGj
7gfdpBCKq8ROBdE8yOP18pNFFol8XIpUYzNYWUdaA2WseHf/EA==
=LjLf
-----END PGP MESSAGE-----
--3d1ed8b573fcb981ff748e753a3e3a8--

+ 121
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_2_0_wrong_key_filename.eml View File

@ -0,0 +1,121 @@
Message-ID: <pEp.QU514Z.06MKWFOUC4VW4.8B722F3C-D06B-47AF-9FEC-36DE8D0C2FF1@pep-project.org>
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="746070ce1d1e78982491f1aa32025638";
protocol="application/pgp-encrypted"
--746070ce1d1e78982491f1aa32025638
Content-Type: application/pgp-encrypted
Version: 1
--746070ce1d1e78982491f1aa32025638
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQf9HD4/RG1zWOZ/qr0O7vNK3Bk3lnvodwzQBLeO6WqT6E7f
4xoMlf2goFfEVr+Pu5cytaOrTjFOx0Fx3SqGo0/+rHOU9ABQz+B3gPLuyugMnQDz
MGU8m3QKMwceXXLYhgS0M9Dr0UGo/OfDf6A6tU1XuxhK2bzaDURErVk1rjueDOds
vf+1XLdlbI8bH/m6MFi8GDgGB8xxIsW2bP1abKAACcF0+Kn2fXAyVE7XaS2hD91v
spZbK5OwlBx1ocbB5kMgX7E0O48R00cvFlqEkYVKhiJFwahHAeWnrnUCNKgroR/4
YPHHR4Bc7h3KA0hyy8MMPqIANu1Igd/nUFKORH4cqcHATANaAgXZcwg/TQEH/3fx
tJoXVbhbcbB/yY5/ntjvGe3UTWItRWSHdQIc9NhTQmspfUbuM9QUbinUJ9jawDl8
zSElnINJb1oCRHZVLD+ReBiqBfAOOLuFFdDAy47TaJtqbRoknCUJi5rWmwgqRjA0
twAAydZfheDXeGfP39OcRnV8xk9ERAsgLi89SnI1enGmWIohInqpc8T9zVNG0zJw
zynkxgsC4rPXJtbmJdWBM7lI6EnXEZKJfHtMHMiKWm0cQdnkiOEzunnfv+8YD3xz
FxS3EnRT6lwMbSHE/En8eKsYOyg8NAL+wZcE3uRB1RFWuQi2Iewu85Y+sAd/PZzt
V2U5+NAi7ONkS6NUm8zSzz0BV/3AR02zRc7e4ReUSZA4faR+FFOJ9BW9nrKkw7YT
xE3BYhr16zTAuFU7eP5OQfhW99yDBHd7z6+hnzXPh/CfR8aLz7prHqD3uIMqJBim
nc1+xytcFXczQKgjXuEMXZm8dTlttHbp8hD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6y
=atfV
-----END PGP MESSAGE-----
--746070ce1d1e78982491f1aa32025638--

+ 120
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_2_0_wrong_sender_key_attached.eml View File

@ -0,0 +1,120 @@
Message-ID: <pEp.QU52L7.0MJFDAFM89M6S.BCB7C2F1-CD34-4E53-B5CE-B75AEC6495A6@pep-project.org>
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="37a3bbf17c0203444ffa60d336a4713c";
protocol="application/pgp-encrypted"
--37a3bbf17c0203444ffa60d336a4713c
Content-Type: application/pgp-encrypted
Version: 1
--37a3bbf17c0203444ffa60d336a4713c
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQgAxgSvp2ides2NC1ZGH2Fwh9duVQzpsOi3Bwj44Cy9tq8G
hZj2a1zDJidRbcAeoivR9z50q3Mcj7cLmPR/F+Rj4EO1iOwtecCuYk6G/8SuX5m9
aRWi/g/FnfOt/OkUp3ewSvhAkQ1B1eOo6R8GCRKnAHfrhTfGKuojJMwYl0eT3O0U
fRd9puW+q5LLeghkcayzQLYj5Y/KWJCfXm6/wcLUDIE475Io772SCV/J6MoZaN5B
rTx2BPNqr/1KJA158FeHWprheFyvOKtflgCocHpGOVeN6S8dzBI0mlzdKvgxHIng
EOgzH81PK0R2WibBxle/ds8KqszadT6VdT17L6I1WMHATANaAgXZcwg/TQEIAL0d
ATAbugEPdWFMTw1E1WMWM4wVPbTicAd45kgqYDBDUaNp8qfH91N8Dwrgo2M4qu0X
eSCpbDNlZgkyrDrQhdkhBPVNfDHxNZ65/qPhMqgJOd1gaOU2dmiL1vbn+aQ0W+Ry
I6hhA6mAjz6muv+HVAC7hqG6rhculjVO+Yy0Ogim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3eMRJJWJdTKW0eSXcb
uvQbrB2+eAi2/+XJrO7IHHh5829s2C6vC0UAY5W2AjtbzQW3RA2RuH9rj2jJilE2
if3i2MkW+ih2EQcAszza3aOWFViQGmuRsLB4n0zSBqtxnaRXjPiuo1PmjFufx5C/
tVpfgCaGClk1gyfWmcllE7hdPbbrzBRlbcB94tRjoe3mgY4E6nMIGbdM4LNTH7xO
IL6WTXLiFUruerLsg1AUh9/IK53Kd8b8tHSV2Inf4wcKIKz2cWH3/kZxHeaW9hfy
1WUELUdqjVStpTNsW3s3uzeBHI5auhKUYCDVtAwb
=Hi0I
-----END PGP MESSAGE-----
--37a3bbf17c0203444ffa60d336a4713c--

+ 71
- 0
test/test_mails/CanonicalFrom2.2BobToAlice_2_1.eml View File

@ -0,0 +1,71 @@
Message-ID: <pEp.QU52UF.0JSDITSGYK5V0.5FCBBC71-16B9-4571-8CCF-7F0A4B469EAE@pep-project.org>
From: Bob Dog <pep.test.bob@pep-project.org>
To: Alice Spivak Hyatt <pep.test.alice@pep-project.org>
Subject: =?utf-8?Q?p=E2=89=A1p?=
X-pEp-Version: 2.2
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="f78767d70252dee789d38c452db88d8";
protocol="application/pgp-encrypted"
--f78767d70252dee789d38c452db88d8
Content-Type: application/pgp-encrypted
Version: 1
--f78767d70252dee789d38c452db88d8
Content-Type: application/octet-stream
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
wcBMA4rbkTfsG51OAQgAqSrfmol16lWMU1xGcPiNzRm3r4w/Kw1jb17r5LOUjnHf
4AdYv7WOQksPVh+4kBkwhLg5wIzvT2r2zyZG/5gDxMDwd75Ywl9JK8t7NL1li2+y
AOqOWvRurP8Q04XlBSK82EGHR9LmVDKoAkBYqf9miN0RJHNNga6kAwvaGsn553qo
+wrtItrHf96pedL5dFjluHxudKhWDZsV0tdVV4le0dI6UCtPh+q6HpfHUNlRDcZv
wUvwSasuJufWs4CAZWxbF28QXsIVRv9Mtk1uW2q5CriiaFfFlluNYLXKmwBosYJv
VTbkv8i6Ip4xaGUsYCCzx/vFrdtwDTdQ+Fx3rIjyVcHATANaAgXZcwg/TQEH/00n
ZQfw4sGwKrDwPCC7yLZ16VlqKcYDRE/xc3UcVoAx2a5Ee/vMVmGSSvVbs08oTzco
YNllYrg1JMZCpfuNqKQcb2H3iZodEYZcBl3fuC5dtTKlRBOOG6IbI7V6N1iUmZrM
Pzku7afadqlSD4w9sTyEyApMtYYbV/K8ptmfiZTdDaDVIPVWsOlAhmoGxp6FrJ2+
fvNYQV+hulgZa0932BcyIo4QL/Ds0P07dff45avl8mCng1sJg3Yc7+pzkSG1qHVd
SGceK/2iUJfeZjDoaxG745cEU/m/LgPZ+BqUHyV9NHrv9ur1I4ua47P1pdj5v2Tx
rttV4Km/iBClUY+c/XTSxdIBU+3dzMJjOvUY/vKXQTNJGYWXNKcVB/KSVsg/hzy6