diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-10 08:07:38 +0000 |
commit | 5113680f95e522c677cdd37072cfffbdca06831e (patch) | |
tree | 973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/testing/parser_test.c | |
parent | 6862128151fb78f63685a8da5575783c426d64a7 (diff) | |
download | strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.bz2 strongswan-5113680f95e522c677cdd37072cfffbdca06831e.tar.xz |
- split up in libstrong, charon, stroke, testing done
- new leak detective with malloc hook in library
- useable, but needs improvements
- logger_manager has now a single instance per library
- allows use of loggers from any linking prog
- a LOT of other things
Diffstat (limited to 'Source/testing/parser_test.c')
-rw-r--r-- | Source/testing/parser_test.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/testing/parser_test.c b/Source/testing/parser_test.c index 81a6556f3..263c6eb70 100644 --- a/Source/testing/parser_test.c +++ b/Source/testing/parser_test.c @@ -24,7 +24,6 @@ #include "parser_test.h" -#include <utils/allocator.h> #include <utils/logger_manager.h> #include <encoding/generator.h> #include <encoding/parser.h> @@ -264,7 +263,7 @@ void test_parser_with_sa_payload(protected_tester_t *tester) if (status == SUCCESS) { - allocator_free(ike_proposals); + free(ike_proposals); } */ sa_payload->destroy(sa_payload); @@ -398,7 +397,7 @@ void test_parser_with_sa_payload(protected_tester_t *tester) if (status == SUCCESS) { - allocator_free(proposals); + free(proposals); } */ @@ -440,7 +439,7 @@ void test_parser_with_nonce_payload(protected_tester_t *tester) tester->assert_true(tester,(result.len == 16), "parsed nonce lenght"); tester->assert_false(tester,(memcmp(nonce_bytes + 4, result.ptr, result.len)), "parsed nonce data"); nonce_payload->destroy(nonce_payload); - allocator_free_chunk(&result); + chunk_free(&result); } /* @@ -480,7 +479,7 @@ void test_parser_with_id_payload(protected_tester_t *tester) tester->assert_true(tester,(result.len == 12), "parsed data lenght"); tester->assert_false(tester,(memcmp(id_bytes + 8, result.ptr, result.len)), "parsed nonce data"); id_payload->destroy(id_payload); - allocator_free_chunk(&result); + chunk_free(&result); } @@ -605,7 +604,7 @@ void test_parser_with_auth_payload(protected_tester_t *tester) tester->assert_true(tester,(result.len == 12), "parsed data lenght"); tester->assert_false(tester,(memcmp(auth_bytes + 8, result.ptr, result.len)), "parsed nonce data"); auth_payload->destroy(auth_payload); - allocator_free_chunk(&result); + chunk_free(&result); } /* @@ -731,7 +730,7 @@ void test_parser_with_cert_payload(protected_tester_t *tester) tester->assert_true(tester,(result.len == 12), "parsed data lenght"); tester->assert_false(tester,(memcmp(cert_bytes + 5, result.ptr, result.len)), "parsed data"); cert_payload->destroy(cert_payload); - allocator_free_chunk(&result); + chunk_free(&result); } /* @@ -770,7 +769,7 @@ void test_parser_with_certreq_payload(protected_tester_t *tester) tester->assert_true(tester,(result.len == 12), "parsed data lenght"); tester->assert_false(tester,(memcmp(certreq_bytes + 5, result.ptr, result.len)), "parsed data"); certreq_payload->destroy(certreq_payload); - allocator_free_chunk(&result); + chunk_free(&result); } /* |