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

index dffbaf2666943ca777f0d68c225469228968b943..bc01ba5df0c06cbbfc4c8a74b25691152c136d03 100644 (file)
@@ -109,6 +109,12 @@ METHOD(eap_method_t, is_mutual, bool,
        return TRUE;
 }
 
+METHOD(eap_method_t, get_auth, auth_cfg_t*,
+       private_eap_tls_t *this)
+{
+       return this->tls_eap->get_auth(this->tls_eap);
+}
+
 METHOD(eap_method_t, destroy, void,
        private_eap_tls_t *this)
 {
@@ -138,6 +144,7 @@ static eap_tls_t *eap_tls_create(identification_t *server,
                                .get_msk = _get_msk,
                                .get_identifier = _get_identifier,
                                .set_identifier = _set_identifier,
+                               .get_auth = _get_auth,
                                .destroy = _destroy,
                        },
                },