From ec6582ccaa59e38cb83650c7c6b8312dc9768e87 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 19 Apr 2006 11:40:48 +0000 Subject: - x509 certificate loading with pluto asn1 code - x509 needs a lot more attention! --- Source/charon/threads/stroke_interface.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/charon/threads/stroke_interface.c') diff --git a/Source/charon/threads/stroke_interface.c b/Source/charon/threads/stroke_interface.c index 8302d1e25..274791bcf 100755 --- a/Source/charon/threads/stroke_interface.c +++ b/Source/charon/threads/stroke_interface.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include @@ -280,7 +280,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) host_t *my_host, *other_host, *my_subnet, *other_subnet; proposal_t *proposal; traffic_selector_t *my_ts, *other_ts; - certificate_t *my_cert, *other_cert; + x509_t *my_cert, *other_cert; rsa_private_key_t *private_key = NULL; rsa_public_key_t *public_key = NULL; @@ -419,7 +419,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) chdir(CERTIFICATE_DIR); - my_cert = certificate_create_from_file(msg->add_conn.me.cert); + my_cert = x509_create_from_file(msg->add_conn.me.cert); if (my_cert == NULL) { this->stroke_logger->log(this->stroke_logger, ERROR, "loading own certificate \"%s%s\" failed", @@ -442,7 +442,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) } my_cert->destroy(my_cert); } - other_cert = certificate_create_from_file(msg->add_conn.other.cert); + other_cert = x509_create_from_file(msg->add_conn.other.cert); public_key = NULL; if (other_cert == NULL) { -- cgit v1.2.3