diff options
author | Dubslow <bunslow@gmail.com> | 2015-03-31 19:30:09 -0500 |
---|---|---|
committer | Dubslow <bunslow@gmail.com> | 2015-03-31 19:30:09 -0500 |
commit | 9b66c57bd0ec8d7e89b7fa751d83ffabd1ce2e75 (patch) | |
tree | f04117c0ab975665ec1dd2f67f8a8afdcc7afdb0 /auto_tests/encryptsave_test.c | |
parent | a47fad15e08ab006c235d1203f731570ffea1ba0 (diff) |
Fix minor code duplication
Diffstat (limited to 'auto_tests/encryptsave_test.c')
-rw-r--r-- | auto_tests/encryptsave_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/encryptsave_test.c b/auto_tests/encryptsave_test.c index 13e06db4..07b0c4d4 100644 --- a/auto_tests/encryptsave_test.c +++ b/auto_tests/encryptsave_test.c | |||
@@ -151,7 +151,7 @@ START_TEST(test_keys) | |||
151 | ck_assert_msg(memcmp(out1, string, 44) == 0, "decryption 1 failed"); | 151 | ck_assert_msg(memcmp(out1, string, 44) == 0, "decryption 1 failed"); |
152 | 152 | ||
153 | ret = tox_pass_decrypt(encrypted2, 44 + TOX_PASS_ENCRYPTION_EXTRA_LENGTH, "123qweasdzxc", 12, out2, &decerr); | 153 | ret = tox_pass_decrypt(encrypted2, 44 + TOX_PASS_ENCRYPTION_EXTRA_LENGTH, "123qweasdzxc", 12, out2, &decerr); |
154 | ck_assert_msg(ret, "generic failure 5: %u", &decerr); | 154 | ck_assert_msg(ret, "generic failure 5: %u", decerr); |
155 | ck_assert_msg(memcmp(out2, string, 44) == 0, "decryption 2 failed"); | 155 | ck_assert_msg(memcmp(out2, string, 44) == 0, "decryption 2 failed"); |
156 | 156 | ||
157 | // test that pass_decrypt can decrypt things from pass_key_encrypt | 157 | // test that pass_decrypt can decrypt things from pass_key_encrypt |