diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-08-26 19:45:44 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2008-08-26 19:45:44 +0000 |
commit | 41dc6b56b0c0a092006905c601269f17acc4adfc (patch) | |
tree | c3107c699e8bafd34485118415245f89553c0442 /src/charon/plugins/stroke | |
parent | a625146517c86e84af1e58a14e6b238e67f02dd7 (diff) | |
download | strongswan-41dc6b56b0c0a092006905c601269f17acc4adfc.tar.bz2 strongswan-41dc6b56b0c0a092006905c601269f17acc4adfc.tar.xz |
ipsec statusall lists eap_type and eap_identity
Diffstat (limited to 'src/charon/plugins/stroke')
-rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 20 |
1 files changed, 19 insertions, 1 deletions
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) { |