summaryrefslogtreecommitdiff
path: root/auto_tests/encryptsave_test.c
diff options
context:
space:
mode:
authordubslow <bunslow@gmail.com>2014-10-08 18:14:23 -0500
committerdubslow <bunslow@gmail.com>2014-10-08 18:50:40 -0500
commite6f30694d32a81f9171b2057d9c873cc16f6dca1 (patch)
tree198d595c26c7eb714e6f032d43638dd9408c9bea /auto_tests/encryptsave_test.c
parenteee37b5767488b8d21c0fb918ae8bf974e66d27d (diff)
refactor toxencryptedsave to allow passphrase encryption of arbitrary data
also a minor API change for clarity
Diffstat (limited to 'auto_tests/encryptsave_test.c')
-rw-r--r--auto_tests/encryptsave_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/encryptsave_test.c b/auto_tests/encryptsave_test.c
index 7661cbc7..752f906f 100644
--- a/auto_tests/encryptsave_test.c
+++ b/auto_tests/encryptsave_test.c
@@ -65,7 +65,7 @@ START_TEST(test_save_friend)
65 uint8_t data[size]; 65 uint8_t data[size];
66 test = tox_encrypted_save(tox1, data, "correcthorsebatterystaple", 25); 66 test = tox_encrypted_save(tox1, data, "correcthorsebatterystaple", 25);
67 ck_assert_msg(test == 0, "failed to encrypted save"); 67 ck_assert_msg(test == 0, "failed to encrypted save");
68 ck_assert_msg(tox_is_data_encrypted(data) == 1, "magic number missing"); 68 ck_assert_msg(tox_is_save_encrypted(data) == 1, "magic number missing");
69 Tox *tox3 = tox_new(0); 69 Tox *tox3 = tox_new(0);
70 test = tox_encrypted_load(tox3, data, size, "correcthorsebatterystaple", 25); 70 test = tox_encrypted_load(tox3, data, size, "correcthorsebatterystaple", 25);
71 ck_assert_msg(test == 0, "failed to encrypted load"); 71 ck_assert_msg(test == 0, "failed to encrypted load");