aboutsummaryrefslogtreecommitdiffstats
path: root/Source/testing/hmac_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/hmac_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/hmac_test.c')
-rw-r--r--Source/testing/hmac_test.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/testing/hmac_test.c b/Source/testing/hmac_test.c
index e33315f77..c1341257c 100644
--- a/Source/testing/hmac_test.c
+++ b/Source/testing/hmac_test.c
@@ -25,7 +25,6 @@
#include "hmac_test.h"
#include <crypto/hmac.h>
-#include <utils/allocator.h>
/*
@@ -176,7 +175,7 @@ void test_hmac_sha1(protected_tester_t *tester)
tester->assert_true(tester, digest[i].len == 20, "chunk len");
tester->assert_false(tester, memcmp(digest[i].ptr, reference[i].ptr, 20), "hmac value");
- allocator_free(digest[i].ptr);
+ free(digest[i].ptr);
}
/*
@@ -216,7 +215,7 @@ void test_hmac_sha1(protected_tester_t *tester)
tester->assert_true(tester, digest[3].len == 20, "chunk len append mode");
tester->assert_false(tester, memcmp(digest[3].ptr, reference[3].ptr, 20), "hmac value append mode");
- allocator_free(digest[3].ptr);
+ free(digest[3].ptr);
}
/*
@@ -364,7 +363,7 @@ void test_hmac_md5(protected_tester_t *tester)
hmac->destroy(hmac);
tester->assert_true(tester, digest[i].len == 16, "chunk len");
tester->assert_false(tester, memcmp(digest[i].ptr, reference[i].ptr, 16), "hmac value");
- allocator_free(digest[i].ptr);
+ free(digest[i].ptr);
}
/*
@@ -405,5 +404,5 @@ void test_hmac_md5(protected_tester_t *tester)
tester->assert_true(tester, digest[3].len == 16, "chunk len append mode");
tester->assert_false(tester, memcmp(digest[3].ptr, reference[3].ptr, 16), "hmac value append mode");
- allocator_free(digest[3].ptr);
+ free(digest[3].ptr);
}