aboutsummaryrefslogtreecommitdiffstats
path: root/Source/lib/asn1/der_encoder.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/lib/asn1/der_encoder.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/lib/asn1/der_encoder.c')
-rw-r--r--Source/lib/asn1/der_encoder.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/lib/asn1/der_encoder.c b/Source/lib/asn1/der_encoder.c
index 07beb5891..f1fde3b82 100644
--- a/Source/lib/asn1/der_encoder.c
+++ b/Source/lib/asn1/der_encoder.c
@@ -23,7 +23,6 @@
#include "der_encoder.h"
-#include <utils/allocator.h>
#include <daemon.h>
@@ -197,7 +196,7 @@ static status_t decode(private_der_encoder_t *this, chunk_t input, void *output)
*/
static void destroy(private_der_encoder_t *this)
{
- allocator_free(this);
+ free(this);
}
/*
@@ -205,14 +204,14 @@ static void destroy(private_der_encoder_t *this)
*/
der_encoder_t *der_encoder_create(asn1_rule_t *rules)
{
- private_der_encoder_t *this = allocator_alloc_thing(private_der_encoder_t);
+ private_der_encoder_t *this = malloc_thing(private_der_encoder_t);
/* public functions */
this->public.decode = (status_t (*) (der_encoder_t*,chunk_t,void*))decode;
this->public.destroy = (void (*) (der_encoder_t*))destroy;
this->first_rule = rules;
- this->logger = charon->logger_manager->get_logger(charon->logger_manager, DER_DECODER);
+ this->logger = logger_manager>logger_manager->get_logger(logger_manager>logger_manager, DER_DECODER);
return &(this->public);
}