diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-24 10:40:10 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-24 10:40:10 +0000 |
commit | a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0 (patch) | |
tree | 91b37f9344855204233631622d5b13a7056084b1 /Source/charon/threads | |
parent | fcfeb3220fbd4e25b0ac63c541c18e8ae1f30766 (diff) | |
download | strongswan-a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0.tar.bz2 strongswan-a8c09d8cc0044fbff6c89c2e8966427ee7ed1ef0.tar.xz |
- identification_t supports now almost all id types
- x509 certificates work with identification_t now
- fixes here, fixes there
Diffstat (limited to 'Source/charon/threads')
-rwxr-xr-x | Source/charon/threads/stroke_interface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/charon/threads/stroke_interface.c b/Source/charon/threads/stroke_interface.c index 274791bcf..2881cb26a 100755 --- a/Source/charon/threads/stroke_interface.c +++ b/Source/charon/threads/stroke_interface.c @@ -309,8 +309,8 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) my_host->destroy(my_host); return; } - my_id = identification_create_from_string(ID_IPV4_ADDR, - *msg->add_conn.me.id ? msg->add_conn.me.id : msg->add_conn.me.address); + my_id = identification_create_from_string(*msg->add_conn.me.id ? + msg->add_conn.me.id : msg->add_conn.me.address); if (my_id == NULL) { this->stroke_logger->log(this->stroke_logger, ERROR, "invalid id: %s", msg->add_conn.me.id); @@ -318,8 +318,8 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) other_host->destroy(other_host); return; } - other_id = identification_create_from_string(ID_IPV4_ADDR, - *msg->add_conn.other.id ? msg->add_conn.other.id : msg->add_conn.other.address); + other_id = identification_create_from_string(*msg->add_conn.other.id ? + msg->add_conn.other.id : msg->add_conn.other.address); if (other_id == NULL) { my_host->destroy(my_host); @@ -328,7 +328,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) this->stroke_logger->log(this->stroke_logger, ERROR, "invalid id: %s", msg->add_conn.other.id); return; } - + my_subnet = host_create(AF_INET, *msg->add_conn.me.subnet ? msg->add_conn.me.subnet : msg->add_conn.me.address, 500); if (my_subnet == NULL) { @@ -339,7 +339,7 @@ static void stroke_add_conn(private_stroke_t *this, stroke_msg_t *msg) this->stroke_logger->log(this->stroke_logger, ERROR, "invalid subnet: %s", msg->add_conn.me.subnet); return; } - + other_subnet = host_create(AF_INET, *msg->add_conn.other.subnet ? msg->add_conn.other.subnet : msg->add_conn.other.address, 500); if (other_subnet == NULL) { |