aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_tnc
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2010-09-08 13:44:34 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2010-09-08 13:44:34 +0200
commit48b8cbb2066f8ee10bb5eddce2b62ee56129564f (patch)
tree42548355948aed2b5011e637844c2b7ad816101f /src/libcharon/plugins/eap_tnc
parentde29e3a683f91d5b392e7a6176c6a0730ebb7847 (diff)
downloadstrongswan-48b8cbb2066f8ee10bb5eddce2b62ee56129564f.tar.bz2
strongswan-48b8cbb2066f8ee10bb5eddce2b62ee56129564f.tar.xz
send well-formed TNCCS-Batch
Diffstat (limited to 'src/libcharon/plugins/eap_tnc')
-rw-r--r--src/libcharon/plugins/eap_tnc/tnc_if_tnccs.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libcharon/plugins/eap_tnc/tnc_if_tnccs.c b/src/libcharon/plugins/eap_tnc/tnc_if_tnccs.c
index fc3500c7b..239c4c827 100644
--- a/src/libcharon/plugins/eap_tnc/tnc_if_tnccs.c
+++ b/src/libcharon/plugins/eap_tnc/tnc_if_tnccs.c
@@ -50,7 +50,15 @@ METHOD(tls_t, process, status_t,
METHOD(tls_t, build, status_t,
private_tnc_if_tnccs_t *this, void *buf, size_t *buflen, size_t *msglen)
{
- char output[] = "Hello World";
+ char output[] =
+ "<?xml version=\"1.0\"?> "
+ "<TNCCS-Batch BatchId=\"1\" Recipient=\"TNCS\" "
+ "xmlns=\"http://www.trustedcomputinggroup.org/IWG/TNC/1_0/IF_TNCCS#\" "
+ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
+ "xsi:schemaLocation=\"http://www.trustedcomputinggroup.org/IWG/TNC/1_0/IF_TNCCS# "
+ "https://www.trustedcomputinggroup.org/XML/SCHEMA/TNCCS_1.0.xsd\"> "
+ "</TNCCS-Batch>";
+
size_t len = strlen(output);
/* TODO */