aboutsummaryrefslogtreecommitdiffstats
path: root/Source/testing/hasher_test.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
committerMartin Willi <martin@strongswan.org>2006-04-10 08:07:38 +0000
commit5113680f95e522c677cdd37072cfffbdca06831e (patch)
tree973ac57accbc66b042e5307942c6cbbbf4f19579 /Source/testing/hasher_test.c
parent6862128151fb78f63685a8da5575783c426d64a7 (diff)
downloadstrongswan-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/hasher_test.c')
-rw-r--r--Source/testing/hasher_test.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/testing/hasher_test.c b/Source/testing/hasher_test.c
index e9df91258..55a4b75d9 100644
--- a/Source/testing/hasher_test.c
+++ b/Source/testing/hasher_test.c
@@ -21,10 +21,8 @@
*/
#include <string.h>
-
-#include "hasher_test.h"
-#include <utils/allocator.h>
+#include "hasher_test.h"
/*
@@ -89,7 +87,7 @@ void test_md5_hasher(protected_tester_t *tester)
hasher->allocate_hash(hasher, abcd, &hash_chunk);
tester->assert_true(tester, hash_chunk.len == 16, "hash len");
tester->assert_false(tester, memcmp(hash_chunk.ptr, hash_abcd, hash_chunk.len), "hash for abcd...");
- allocator_free(hash_chunk.ptr);
+ free(hash_chunk.ptr);
hasher->destroy(hasher);
}
@@ -150,7 +148,7 @@ void test_sha1_hasher(protected_tester_t *tester)
hasher->allocate_hash(hasher, abcdb, &hash_chunk);
tester->assert_true(tester, hash_chunk.len == 20, "chunk len");
tester->assert_false(tester, memcmp(hash_chunk.ptr, hash_abcdb, hash_chunk.len), "hash for abcdb...");
- allocator_free(hash_chunk.ptr);
+ free(hash_chunk.ptr);
/* updating, using "aaaaaaa..." */
hasher->reset(hasher);