aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2013-03-30 08:22:33 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2013-03-30 08:22:33 +0100
commitc6f9b1fb1f2d46201074bfabc38a77192707587e (patch)
tree3b7380d54b04e30c51b878d8383598b972448894 /src
parentb02bdc1e06ab9c584bebd40a55876ad93f96febd (diff)
downloadstrongswan-c6f9b1fb1f2d46201074bfabc38a77192707587e.tar.bz2
strongswan-c6f9b1fb1f2d46201074bfabc38a77192707587e.tar.xz
ifmap message type is known
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap.c9
-rw-r--r--src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.c6
-rw-r--r--src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.h4
3 files changed, 7 insertions, 12 deletions
diff --git a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap.c b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap.c
index da6dc6aa2..47fd2c849 100644
--- a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap.c
+++ b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap.c
@@ -104,8 +104,7 @@ METHOD(tnc_ifmap2_soap_t, newSession, bool,
xmlSetNs(request, this->ns);
soap_msg = tnc_ifmap2_soap_msg_create(this->tls);
- if (!soap_msg->post(soap_msg, "newSession", request,
- "newSessionResult", &result))
+ if (!soap_msg->post(soap_msg, request, "newSessionResult", &result))
{
soap_msg->destroy(soap_msg);
return FALSE;
@@ -143,8 +142,7 @@ METHOD(tnc_ifmap2_soap_t, purgePublisher, bool,
xmlNewProp(request, "ifmap-publisher-id", this->ifmap_publisher_id);
soap_msg = tnc_ifmap2_soap_msg_create(this->tls);
- success = soap_msg->post(soap_msg, "purgePublisher", request,
- "purgePublisherReceived", NULL);
+ success = soap_msg->post(soap_msg, request, "purgePublisherReceived", NULL);
soap_msg->destroy(soap_msg);
return success;
@@ -270,8 +268,7 @@ METHOD(tnc_ifmap2_soap_t, publish_device_ip, bool,
xmlAddChild(update, create_metadata(this, "device-ip"));
soap_msg = tnc_ifmap2_soap_msg_create(this->tls);
- success = soap_msg->post(soap_msg, "publish", request,
- "publishReceived", NULL);
+ success = soap_msg->post(soap_msg, request, "publishReceived", NULL);
soap_msg->destroy(soap_msg);
return success;
diff --git a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.c b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.c
index b7f8a5ed7..900516c8f 100644
--- a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.c
+++ b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.c
@@ -146,8 +146,8 @@ static xmlNodePtr find_child(xmlNodePtr parent, const xmlChar* name)
}
METHOD(tnc_ifmap2_soap_msg_t, post, bool,
- private_tnc_ifmap2_soap_msg_t *this, char *request_name, xmlNodePtr request,
- char *result_name, xmlNodePtr *result)
+ private_tnc_ifmap2_soap_msg_t *this, xmlNodePtr request, char *result_name,
+ xmlNodePtr *result)
{
xmlDocPtr doc;
xmlNodePtr env, body, cur, response;
@@ -156,7 +156,7 @@ METHOD(tnc_ifmap2_soap_msg_t, post, bool,
int len;
chunk_t in, out;
- DBG2(DBG_TNC, "sending ifmap %s", request_name);
+ DBG2(DBG_TNC, "sending ifmap %s", request->name);
/* Generate XML Document containing SOAP Envelope */
doc = xmlNewDoc("1.0");
diff --git a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.h b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.h
index 21ab5eecd..058ffb116 100644
--- a/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.h
+++ b/src/libcharon/plugins/tnc_ifmap2/tnc_ifmap2_soap_msg.h
@@ -36,13 +36,11 @@ struct tnc_ifmap2_soap_msg_t {
/**
* Post an IF-MAP request in a SOAP-XML message and return a result
*
- * @param request_name name of the IF-MAP request
* @param request XML-encoded IF-MAP request
* @param result_name name of the IF-MAP result
* @param result XML-encoded IF-MAP result
*/
- bool (*post)(tnc_ifmap2_soap_msg_t *this,
- char *request_name, xmlNodePtr request,
+ bool (*post)(tnc_ifmap2_soap_msg_t *this, xmlNodePtr request,
char *result_name, xmlNodePtr* result);
/**