test/src/engine_tests/ReencryptPlusExtraKeysTests.cc
branchENGINE-448
changeset 3254 6e7f6bc9460a
parent 3164 5c4b1bd2c638
child 3276 c0b3430f1f1d
     1.1 --- a/test/src/engine_tests/ReencryptPlusExtraKeysTests.cc	Mon Jan 28 14:04:12 2019 +0100
     1.2 +++ b/test/src/engine_tests/ReencryptPlusExtraKeysTests.cc	Tue Jan 29 19:19:30 2019 +0100
     1.3 @@ -52,24 +52,24 @@
     1.4      const string pub_extra_key_1 = slurp("test_keys/pub/reencrypt_extra_keys_1-0x8B026AEC_pub.asc");
     1.5  
     1.6      status = import_key(session, own_recip_pub_key.c_str(), own_recip_pub_key.length(), NULL);
     1.7 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import own recipient public key.");
     1.8 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import own recipient public key.");
     1.9      status = import_key(session, own_recip_priv_key.c_str(), own_recip_priv_key.length(), NULL);
    1.10 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import own recipient private key.");    
    1.11 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import own recipient private key.");    
    1.12      status = import_key(session, own_recip_2_pub_key.c_str(), own_recip_2_pub_key.length(), NULL);
    1.13 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import own second recipient public key.");
    1.14 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import own second recipient public key.");
    1.15      status = import_key(session, own_recip_2_priv_key.c_str(), own_recip_2_priv_key.length(), NULL);
    1.16 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import own second recipient public key.");
    1.17 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import own second recipient public key.");
    1.18      
    1.19      status = import_key(session, sender_pub_key.c_str(), sender_pub_key.length(), NULL);
    1.20 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import own sender public key.");
    1.21 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import own sender public key.");
    1.22      status = import_key(session, recip_2_pub_key.c_str(), recip_2_pub_key.length(), NULL);
    1.23 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to second recipient public key.");
    1.24 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to second recipient public key.");
    1.25      status = import_key(session, recip_0_pub_key.c_str(), recip_0_pub_key.length(), NULL);
    1.26 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import zeroth recipient public key.");
    1.27 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import zeroth recipient public key.");
    1.28      status = import_key(session, pub_extra_key_0.c_str(), pub_extra_key_0.length(), NULL);
    1.29 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import first extra public key.");
    1.30 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import first extra public key.");
    1.31      status = import_key(session, pub_extra_key_1.c_str(), pub_extra_key_1.length(), NULL);
    1.32 -    TEST_ASSERT_MSG(status == PEP_STATUS_OK, "Failed to import second extra public key.");
    1.33 +    TEST_ASSERT_MSG(status == PEP_KEY_IMPORTED, "Failed to import second extra public key.");
    1.34  
    1.35      cout << "Keys imported." << endl;
    1.36