From 88e15afc8c256bebf9e777845dd99b23f7368ad2 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 31 Jan 2011 05:31:22 +0100 Subject: [PATCH] added comment to determine_tnccs_protocol() function --- src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c b/src/libcharon/plugins/tnccs_dynamic/tnccs_dynamic.c index f7ef5d98a7..b7985fa513 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) -- 2.47.3