]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
eap-ttls: Support EAP auth information getter in EAP-TTLS
authorMartin Willi <martin@revosec.ch>
Thu, 29 Jan 2015 10:18:30 +0000 (11:18 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 3 Mar 2015 13:08:01 +0000 (14:08 +0100)
src/libcharon/plugins/eap_ttls/eap_ttls.c

index 703cd3f29adb056e2049304f731709bd9645f895..c99d47f8df9f64c55864acc4c0522d5980b64be0 100644 (file)
@@ -111,6 +111,12 @@ METHOD(eap_method_t, is_mutual, bool,
        return TRUE;
 }
 
+METHOD(eap_method_t, get_auth, auth_cfg_t*,
+       private_eap_ttls_t *this)
+{
+       return this->tls_eap->get_auth(this->tls_eap);
+}
+
 METHOD(eap_method_t, destroy, void,
        private_eap_ttls_t *this)
 {
@@ -141,6 +147,7 @@ static eap_ttls_t *eap_ttls_create(identification_t *server,
                                .get_identifier = _get_identifier,
                                .set_identifier = _set_identifier,
                                .get_msk = _get_msk,
+                               .get_auth = _get_auth,
                                .destroy = _destroy,
                        },
                },