added get|set_identifier() methods to eap_tnc_t
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 6 Apr 2011 05:50:42 +0000 (07:50 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 6 Apr 2011 05:50:42 +0000 (07:50 +0200)
src/libcharon/plugins/eap_tnc/eap_tnc.c

index dd4ed53..d47fd37 100644 (file)
@@ -92,6 +92,18 @@ METHOD(eap_method_t, get_msk, status_t,
        return FAILED;
 }
 
+METHOD(eap_method_t, get_identifier, u_int8_t,
+       private_eap_tnc_t *this)
+{
+       return this->tls_eap->get_identifier(this->tls_eap);
+}
+
+METHOD(eap_method_t, set_identifier, void,
+       private_eap_tnc_t *this, u_int8_t identifier)
+{
+       this->tls_eap->set_identifier(this->tls_eap, identifier);
+}
+
 METHOD(eap_method_t, is_mutual, bool,
        private_eap_tnc_t *this)
 {
@@ -126,6 +138,8 @@ static eap_tnc_t *eap_tnc_create(identification_t *server,
                                .get_type = _get_type,
                                .is_mutual = _is_mutual,
                                .get_msk = _get_msk,
+                               .get_identifier = _get_identifier,
+                               .set_identifier = _set_identifier,
                                .destroy = _destroy,
                        },
                },