From 41dc6b56b0c0a092006905c601269f17acc4adfc Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 26 Aug 2008 19:45:44 +0000 Subject: ipsec statusall lists eap_type and eap_identity --- src/charon/plugins/stroke/stroke_list.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c index 03c6ba15a..ec2e8892c 100644 --- a/src/charon/plugins/stroke/stroke_list.c +++ b/src/charon/plugins/stroke/stroke_list.c @@ -279,6 +279,8 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo auth_info_t *auth; enumerator_t *auth_enumerator; identification_t *my_ca = NULL, *other_ca = NULL; + identification_t *eap_identity = NULL; + u_int32_t *eap_type = NULL; if (peer_cfg->get_ike_version(peer_cfg) != 2 || (name && !streq(name, peer_cfg->get_name(peer_cfg)))) @@ -293,6 +295,12 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo { switch (item) { + case AUTHN_EAP_TYPE: + eap_type = (u_int32_t *)ptr; + break; + case AUTHN_EAP_IDENTITY: + eap_identity = (identification_t *)ptr; + break; case AUTHN_CA_CERT: cert = (certificate_t *)ptr; my_ca = cert->get_subject(cert); @@ -337,8 +345,18 @@ static void status(private_stroke_list_t *this, stroke_msg_t *msg, FILE *out, bo fprintf(out, "%%any\n"); } } - fprintf(out, "%12s: %N authentication", peer_cfg->get_name(peer_cfg), + + fprintf(out, "%12s: %N ", peer_cfg->get_name(peer_cfg), auth_class_names, get_auth_class(peer_cfg)); + if (eap_type) + { + fprintf(out, "and %N ", eap_type_names, *eap_type); + } + fprintf(out, "authentication"); + if (eap_identity) + { + fprintf(out, ", EAP identity: '%D'", eap_identity); + } dpd = peer_cfg->get_dpd(peer_cfg); if (dpd) { -- cgit v1.2.3