From: Andreas Steffen Date: Mon, 31 Jan 2011 04:31:22 +0000 (+0100) Subject: added comment to determine_tnccs_protocol() function X-Git-Tag: 4.5.1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e15afc8c256bebf9e777845dd99b23f7368ad2;p=thirdparty%2Fstrongswan.git added comment to determine_tnccs_protocol() function --- 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)