aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-01-31 05:31:22 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-01-31 05:31:22 +0100
commit88e15afc8c256bebf9e777845dd99b23f7368ad2 (patch)
tree6ea4cd876d8988ca1097a1b4c5c2dc07805e94e5
parentf652995b2123f870cb652e4dfdc9f6a59ac561f0 (diff)
downloadstrongswan-88e15afc8c256bebf9e777845dd99b23f7368ad2.tar.bz2
strongswan-88e15afc8c256bebf9e777845dd99b23f7368ad2.tar.xz
added comment to determine_tnccs_protocol() function
-rw-r--r--src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c b/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c
index f7ef5d98a..b7985fa51 100644
--- a/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c
+++ b/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c
@@ -36,6 +36,12 @@ struct private_tnccs_dynamic_t {
tls_t *tls;
};
+/**
+ * Determine the version of the IF-TNCCS protocol used by analyzing the first
+ * byte of the TNCCS batch received from a TNC Client according to the rules
+ * defined by section 3.5 "Interoperability with older IF-TNCCS versions" of
+ * the TCG TNC IF-TNCCS TLV Bindings Version 2.0 standard.
+ */
tnccs_type_t determine_tnccs_protocol(char version)
{
switch (version)