aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-29 10:25:07 +0000
committerMartin Willi <martin@strongswan.org>2005-11-29 10:25:07 +0000
commit0e96f7d8c3aefaa1717f4c30e66fdc459d3f2ecc (patch)
tree9482ca76a46e005757ac485007ad18c8fa38d794 /Source/charon/encoding
parent79b9c1d6c5ebf296d29e11f4a5f25c0bf60f896c (diff)
downloadstrongswan-0e96f7d8c3aefaa1717f4c30e66fdc459d3f2ecc.tar.bz2
strongswan-0e96f7d8c3aefaa1717f4c30e66fdc459d3f2ecc.tar.xz
- globals packed in a daemon
Diffstat (limited to 'Source/charon/encoding')
-rw-r--r--Source/charon/encoding/generator.c6
-rw-r--r--Source/charon/encoding/message.c6
-rw-r--r--Source/charon/encoding/parser.c6
-rw-r--r--Source/charon/encoding/payloads/encryption_payload.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/Source/charon/encoding/generator.c b/Source/charon/encoding/generator.c
index c239cf697..cfe8b815f 100644
--- a/Source/charon/encoding/generator.c
+++ b/Source/charon/encoding/generator.c
@@ -29,7 +29,7 @@
#include "generator.h"
#include <types.h>
-#include <globals.h>
+#include <daemon.h>
#include <utils/allocator.h>
#include <utils/linked_list.h>
#include <utils/logger_manager.h>
@@ -933,7 +933,7 @@ static void generate_payload (private_generator_t *this,payload_t *payload)
static status_t destroy(private_generator_t *this)
{
allocator_free(this->buffer);
- global_logger_manager->destroy_logger(global_logger_manager,this->logger);
+ charon->logger_manager->destroy_logger(charon->logger_manager,this->logger);
allocator_free(this);
return SUCCESS;
}
@@ -977,7 +977,7 @@ generator_t * generator_create()
this->current_bit = 0;
this->last_payload_length_position_offset = 0;
this->header_length_position_offset = 0;
- this->logger = global_logger_manager->create_logger(global_logger_manager,GENERATOR,NULL);
+ this->logger = charon->logger_manager->create_logger(charon->logger_manager,GENERATOR,NULL);
return &(this->public);
}
diff --git a/Source/charon/encoding/message.c b/Source/charon/encoding/message.c
index 37e9a55f1..82572e5a8 100644
--- a/Source/charon/encoding/message.c
+++ b/Source/charon/encoding/message.c
@@ -25,7 +25,7 @@
#include "message.h"
#include <types.h>
-#include <globals.h>
+#include <daemon.h>
#include <sa/ike_sa_id.h>
#include <encoding/generator.h>
#include <encoding/parser.h>
@@ -736,7 +736,7 @@ static void destroy (private_message_t *this)
iterator->destroy(iterator);
this->payloads->destroy(this->payloads);
this->parser->destroy(this->parser);
- global_logger_manager->destroy_logger(global_logger_manager, this->logger);
+ charon->logger_manager->destroy_logger(charon->logger_manager, this->logger);
allocator_free(this);
}
@@ -795,7 +795,7 @@ message_t *message_create_from_packet(packet_t *packet)
/* parser is created from data of packet */
this->parser = parser_create(this->packet->data);
- this->logger = global_logger_manager->create_logger(global_logger_manager, MESSAGE, NULL);
+ this->logger = charon->logger_manager->create_logger(charon->logger_manager, MESSAGE, NULL);
return (&this->public);
}
diff --git a/Source/charon/encoding/parser.c b/Source/charon/encoding/parser.c
index 55ad56462..1bfb98d1e 100644
--- a/Source/charon/encoding/parser.c
+++ b/Source/charon/encoding/parser.c
@@ -27,7 +27,7 @@
#include <types.h>
#include <definitions.h>
-#include <globals.h>
+#include <daemon.h>
#include <utils/allocator.h>
#include <utils/logger.h>
#include <utils/linked_list.h>
@@ -875,7 +875,7 @@ static void reset_context (private_parser_t *this)
*/
static void destroy(private_parser_t *this)
{
- global_logger_manager->destroy_logger(global_logger_manager,this->logger);
+ charon->logger_manager->destroy_logger(charon->logger_manager,this->logger);
allocator_free(this);
}
@@ -886,7 +886,7 @@ parser_t *parser_create(chunk_t data)
{
private_parser_t *this = allocator_alloc_thing(private_parser_t);
- this->logger = global_logger_manager->create_logger(global_logger_manager, PARSER, NULL);
+ this->logger = charon->logger_manager->create_logger(charon->logger_manager, PARSER, NULL);
this->public.parse_payload = (status_t(*)(parser_t*,payload_type_t,payload_t**)) parse_payload;
this->public.reset_context = (void(*)(parser_t*)) reset_context;
diff --git a/Source/charon/encoding/payloads/encryption_payload.c b/Source/charon/encoding/payloads/encryption_payload.c
index 08722f83f..db4b441e5 100644
--- a/Source/charon/encoding/payloads/encryption_payload.c
+++ b/Source/charon/encoding/payloads/encryption_payload.c
@@ -360,7 +360,7 @@ static status_t encrypt(private_encryption_payload_t *this, crypter_t *crypter)
/* encrypt concatenated chunk */
allocator_free(this->encrypted.ptr);
- status = crypter->encrypt(crypter, iv, concatenated, &(this->encrypted));
+ status = crypter->encrypt(crypter, concatenated, iv, &(this->encrypted));
allocator_free(padding.ptr);
allocator_free(concatenated.ptr);
allocator_free(iv.ptr);
@@ -408,7 +408,7 @@ static status_t decrypt(private_encryption_payload_t *this, crypter_t *crypter)
/* free previus data, if any */
allocator_free(this->decrypted.ptr);
- status = crypter->decrypt(crypter, iv, concatenated, &(this->decrypted));
+ status = crypter->decrypt(crypter, concatenated, iv, &(this->decrypted));
if (status != SUCCESS)
{
return FAILED;