added get|set_identifier() methods to eap_tls_t and eap_ttls_t
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 5 Apr 2011 16:35:22 +0000 (18:35 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 5 Apr 2011 16:35:22 +0000 (18:35 +0200)
src/libcharon/plugins/eap_tls/eap_tls.c
src/libcharon/plugins/eap_ttls/eap_ttls.c

index efe72c4..f6e8aba 100644 (file)
@@ -91,6 +91,18 @@ METHOD(eap_method_t, get_msk, status_t,
        return FAILED;
 }
 
+METHOD(eap_method_t, get_identifier, u_int8_t,
+       private_eap_tls_t *this)
+{
+       return this->tls_eap->get_identifier(this->tls_eap);
+}
+
+METHOD(eap_method_t, set_identifier, void,
+       private_eap_tls_t *this, u_int8_t identifier)
+{
+       this->tls_eap->set_identifier(this->tls_eap, identifier);
+}
+
 METHOD(eap_method_t, is_mutual, bool,
        private_eap_tls_t *this)
 {
@@ -123,6 +135,8 @@ static eap_tls_t *eap_tls_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,
                        },
                },
index a62af6e..176b0c4 100644 (file)
@@ -93,6 +93,18 @@ METHOD(eap_method_t, get_msk, status_t,
        return FAILED;
 }
 
+METHOD(eap_method_t, get_identifier, u_int8_t,
+       private_eap_ttls_t *this)
+{
+       return this->tls_eap->get_identifier(this->tls_eap);
+}
+
+METHOD(eap_method_t, set_identifier, void,
+       private_eap_ttls_t *this, u_int8_t identifier)
+{
+       this->tls_eap->set_identifier(this->tls_eap, identifier);
+}
+
 METHOD(eap_method_t, is_mutual, bool,
        private_eap_ttls_t *this)
 {
@@ -125,6 +137,8 @@ static eap_ttls_t *eap_ttls_create(identification_t *server,
                                .process = _process,
                                .get_type = _get_type,
                                .is_mutual = _is_mutual,
+                               .get_identifier = _get_identifier,
+                               .set_identifier = _set_identifier,
                                .get_msk = _get_msk,
                                .destroy = _destroy,
                        },