aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/crypto/prfs
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/lib/crypto/prfs
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/lib/crypto/prfs')
-rw-r--r--Source/lib/crypto/prfs/hmac_prf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/lib/crypto/prfs/hmac_prf.c b/Source/lib/crypto/prfs/hmac_prf.c
index 2ea0869f7..2a7d34a3a 100644
--- a/Source/lib/crypto/prfs/hmac_prf.c
+++ b/Source/lib/crypto/prfs/hmac_prf.c
@@ -22,7 +22,6 @@
#include "hmac_prf.h"
-#include <utils/allocator.h>
#include <crypto/hmac.h>
@@ -89,7 +88,7 @@ static void set_key(private_hmac_prf_t *this, chunk_t key)
*/
static void destroy(private_hmac_prf_t *this)
{
- allocator_free(this);
+ free(this);
this->hmac->destroy(this->hmac);
}
@@ -98,7 +97,7 @@ static void destroy(private_hmac_prf_t *this)
*/
hmac_prf_t *hmac_prf_create(hash_algorithm_t hash_algorithm)
{
- private_hmac_prf_t *this = allocator_alloc_thing(private_hmac_prf_t);
+ private_hmac_prf_t *this = malloc_thing(private_hmac_prf_t);
this->public.prf_interface.get_bytes = (void (*) (prf_t *,chunk_t,u_int8_t*))get_bytes;
this->public.prf_interface.allocate_bytes = (void (*) (prf_t*,chunk_t,chunk_t*))allocate_bytes;
@@ -110,7 +109,7 @@ hmac_prf_t *hmac_prf_create(hash_algorithm_t hash_algorithm)
this->hmac = hmac_create(hash_algorithm);
if (this->hmac == NULL)
{
- allocator_free(this);
+ free(this);
return NULL;
}