diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-16 15:25:06 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-16 15:25:06 +0000 |
commit | 16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1 (patch) | |
tree | b7d3214d59942dbd75ad8b9b8f86468f82f7a496 /Source/charon/testcases/aes_cbc_crypter_test.c | |
parent | b1953ccd05b5e6cf5a87c557208d5f8a1fcad231 (diff) | |
download | strongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.bz2 strongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.xz |
- reworked configuration framework completly
- configuration is now split up in: connections, policies, credentials and daemon config
- further alloc/free fixes needed!
Diffstat (limited to 'Source/charon/testcases/aes_cbc_crypter_test.c')
-rw-r--r-- | Source/charon/testcases/aes_cbc_crypter_test.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/charon/testcases/aes_cbc_crypter_test.c b/Source/charon/testcases/aes_cbc_crypter_test.c index e92be7fc9..3208e847b 100644 --- a/Source/charon/testcases/aes_cbc_crypter_test.c +++ b/Source/charon/testcases/aes_cbc_crypter_test.c @@ -64,16 +64,16 @@ void test_aes_cbc_crypter(protected_tester_t *tester) tester->assert_true(tester, (memcmp(encrypted1.ptr, expected_encrypted1.ptr, 16) == 0), "Encrypted value"); - logger->log_chunk(logger,RAW,"exptected encrypted :", &expected_encrypted1); - logger->log_chunk(logger,RAW,"encrypted :", &encrypted1); + logger->log_chunk(logger,RAW,"exptected encrypted :", expected_encrypted1); + logger->log_chunk(logger,RAW,"encrypted :", encrypted1); tester->assert_true(tester, (crypter->decrypt(crypter,encrypted1,iv1_chunk,&decrypted1) == SUCCESS), "decrypt call test"); allocator_free_chunk(&encrypted1); tester->assert_true(tester, (memcmp(decrypted1.ptr, plaintext1, 16) == 0), "decrypted value"); - logger->log_chunk(logger,RAW,"expected decrypted :", &data1); - logger->log_chunk(logger,RAW,"decrypted :", &decrypted1); + logger->log_chunk(logger,RAW,"expected decrypted :", data1); + logger->log_chunk(logger,RAW,"decrypted :", decrypted1); allocator_free_chunk(&decrypted1); @@ -119,16 +119,16 @@ void test_aes_cbc_crypter(protected_tester_t *tester) tester->assert_true(tester, (memcmp(encrypted2.ptr, expected_encrypted2.ptr, 32) == 0), "Encrypted value"); - logger->log_chunk(logger,RAW,"exptected encrypted :", &expected_encrypted2); - logger->log_chunk(logger,RAW,"encrypted :", &encrypted2); + logger->log_chunk(logger,RAW,"exptected encrypted :", expected_encrypted2); + logger->log_chunk(logger,RAW,"encrypted :", encrypted2); tester->assert_true(tester, (crypter->decrypt(crypter,encrypted2,iv2_chunk,&decrypted2) == SUCCESS), "decrypt call test"); allocator_free_chunk(&encrypted2); tester->assert_true(tester, (memcmp(decrypted2.ptr, plaintext2, 32) == 0), "decrypted value"); - logger->log_chunk(logger,RAW,"expected decrypted :", &data2); - logger->log_chunk(logger,RAW,"decrypted :", &decrypted2); + logger->log_chunk(logger,RAW,"expected decrypted :", data2); + logger->log_chunk(logger,RAW,"decrypted :", decrypted2); allocator_free_chunk(&decrypted2); @@ -184,16 +184,16 @@ void test_aes_cbc_crypter(protected_tester_t *tester) tester->assert_true(tester, (memcmp(encrypted3.ptr, expected_encrypted3.ptr, 64) == 0), "Encrypted value"); - logger->log_chunk(logger,RAW,"exptected encrypted :", &expected_encrypted3); - logger->log_chunk(logger,RAW,"encrypted :", &encrypted3); + logger->log_chunk(logger,RAW,"exptected encrypted :", expected_encrypted3); + logger->log_chunk(logger,RAW,"encrypted :", encrypted3); tester->assert_true(tester, (crypter->decrypt(crypter,encrypted3,iv3_chunk,&decrypted3) == SUCCESS), "decrypt call test"); allocator_free_chunk(&encrypted3); tester->assert_true(tester, (memcmp(decrypted3.ptr, plaintext3, 64) == 0), "decrypted value"); - logger->log_chunk(logger,RAW,"expected decrypted :", &data3); - logger->log_chunk(logger,RAW,"decrypted :", &decrypted3); + logger->log_chunk(logger,RAW,"expected decrypted :", data3); + logger->log_chunk(logger,RAW,"decrypted :", decrypted3); allocator_free_chunk(&decrypted3); |