make TNC client authentication type available to IMVs
[strongswan.git] / src / libcharon / plugins / tnccs_11 / tnccs_11.c
index 4a61bde..53817c7 100644 (file)
@@ -68,6 +68,11 @@ struct private_tnccs_11_t {
        tnc_ift_type_t transport;
 
        /**
+        * Type of TNC client authentication
+        */
+       u_int32_t auth_type;
+
+       /**
         * Connection ID assigned to this TNCCS connection
         */
        TNC_ConnectionID connection_id;
@@ -574,6 +579,18 @@ METHOD(tnccs_t, set_transport, void,
        this->transport = transport;
 }
 
+METHOD(tnccs_t, get_auth_type, u_int32_t,
+       private_tnccs_11_t *this)
+{
+       return this->auth_type;
+}
+
+METHOD(tnccs_t, set_auth_type, void,
+       private_tnccs_11_t *this, u_int32_t auth_type)
+{
+       this->auth_type = auth_type;
+}
+
 /**
  * See header
  */
@@ -599,6 +616,8 @@ tnccs_t* tnccs_11_create(bool is_server,
                        },
                        .get_transport = _get_transport,
                        .set_transport = _set_transport,
+                       .get_auth_type = _get_auth_type,
+                       .set_auth_type = _set_auth_type,
                },
                .is_server = is_server,
                .server = server->clone(server),