]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libimcv: Implementation of RFC 8412 SWIMA
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 12 Jun 2018 16:09:12 +0000 (18:09 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 12 Jun 2018 19:47:40 +0000 (21:47 +0200)
NEWS
src/libimcv/ietf/ietf_attr.h
src/libimcv/ietf/ietf_attr_pa_tnc_error.h
src/libimcv/ietf/swima/ietf_swima_attr_req.c
src/libimcv/ietf/swima/ietf_swima_attr_sw_ev.c
src/libimcv/ietf/swima/ietf_swima_attr_sw_inv.c

diff --git a/NEWS b/NEWS
index 99953148e05fbc315e12b107f322ccbc6c0c555c..8fd7f6e75b21bab0a40bdc4a4477dce3488c4791 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ strongswan-5.7.0
 - The pki tool accepts a xmppAddr otherName as a subjectAlternativeName using
   the syntax --san xmppaddr:<jid>.
 
+- Implementation of RFC 8412 "Software Inventory Message and Attributes (SWIMA)
+  for PA-TNC"
+
 
 strongswan-5.6.3
 ----------------
index 6e264bc925c5f206cc347169e703b6018fb0b0c0..0f802fd453abcb878856eceee453e2694ca3cff6 100644 (file)
@@ -32,7 +32,7 @@ typedef enum ietf_attr_t ietf_attr_t;
  */
 enum ietf_attr_t {
 
-       /* RFC 5792 */
+       /* RFC 5792 PA-TNC */
        IETF_ATTR_TESTING =                            0,
        IETF_ATTR_ATTRIBUTE_REQUEST =                  1,
        IETF_ATTR_PRODUCT_INFORMATION =                2,
@@ -47,7 +47,7 @@ enum ietf_attr_t {
        IETF_ATTR_FORWARDING_ENABLED =                11,
        IETF_ATTR_FACTORY_DEFAULT_PWD_ENABLED =       12,
 
-       /* draft-ietf-sacm-nea-swid-patnc */
+       /* RFC 8412 SWIMA */
        IETF_ATTR_SWIMA_REQUEST =                     13,
        IETF_ATTR_SW_ID_INVENTORY =                   14,
        IETF_ATTR_SW_ID_EVENTS =                      15,
index ee2a92c4ea13416b52bc40cde8456f9f72e1522e..d5cba97b64eb52ae8d04dfa5686c04947d35e93a 100644 (file)
@@ -39,7 +39,7 @@ enum  pa_tnc_error_code_t {
        PA_ERROR_ATTR_TYPE_NOT_SUPPORTED =          3,
        PA_ERROR_PA_TNC_MSG_ROOF =                  3,
 
-       /* draft-ietf-sacm-nea-swid-patnc (SWIMA) */
+       /* RFC 8412 SWIMA */
        PA_ERROR_SWIMA =                            4,
        PA_ERROR_SWIMA_SUBSCRIPTION_DENIED =        5,
        PA_ERROR_SWIMA_RESPONSE_TOO_LARGE =         6,
index d67497373fa303556a228c426c1ee7f344c576a2..12212ec18685329aa6a6fc9859d4632d185a66c8 100644 (file)
@@ -26,7 +26,7 @@ typedef struct private_ietf_swima_attr_req_t private_ietf_swima_attr_req_t;
 
 /**
  * SW Request
- * see section 5.7 of IETF SW Inventory Message and Attributes for PA-TNC
+ * see section 5.7 of RFC 8412 SWIMA
  *
  *                       1                   2                   3
  *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
@@ -191,7 +191,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
                        return FAILED;
                }
                *offset += 2 + sw_id.len;
-               
+
                sw_record = swima_record_create(0, sw_id, chunk_empty);
                this->targets->add(this->targets, sw_record);
        }
index cebc998e2f31555790eb4fafd9ac110086a2b281..47f4995186aaaa57e4d58b611eee002a289eb7ae 100644 (file)
@@ -27,7 +27,7 @@ typedef struct private_ietf_swima_attr_sw_ev_t private_ietf_swima_attr_sw_ev_t;
 
 /**
  * Software [Identifier] Events
- * see sections 5.9/5.11 of IETF SW Inventory Message and Attributes for PA-TNC
+ * see sections 5.9/5.11 of RFC 8412 SWIMA
  *
  *                       1                   2                   3
  *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
index a6c1d28b2128de0905033089e096b877ce64b51d..8035dbb07402c47746cb21e947a2800bcd47a3de 100644 (file)
@@ -26,7 +26,7 @@ typedef struct private_ietf_swima_attr_sw_inv_t private_ietf_swima_attr_sw_inv_t
 
 /**
  * Software [Identifier] Inventory
- * see sections 5.8/5.10 of IETF SW Inventory Message and Attributes for PA-TNC
+ * see sections 5.8/5.10 of RFC 8412 SWIMA
  *
  *                       1                   2                   3
  *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1