diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 07:30:07 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-11-04 07:30:07 +0100 |
commit | fae322219f9025fe75b4225d6f174b2096cd60e6 (patch) | |
tree | 619c229a89deb4f997d2b6f95033b44d4266c3b4 /src/charon/plugins/stroke/stroke_list.c | |
parent | 5d1d7e82b5094c6be9f6cf143ea8bcd2332e9c4b (diff) | |
download | strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.bz2 strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.xz |
output optional pathLenConstraint in ipsec listcacerts
Diffstat (limited to 'src/charon/plugins/stroke/stroke_list.c')
-rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c index f8bab4f9d..5cffa4298 100644 --- a/src/charon/plugins/stroke/stroke_list.c +++ b/src/charon/plugins/stroke/stroke_list.c @@ -665,6 +665,7 @@ static void stroke_list_certs(linked_list_t *list, char *label, enumerator_t *enumerator; identification_t *altName; bool first_altName = TRUE; + int pathlen; chunk_t serial, authkey; time_t notBefore, notAfter; public_key_t *public; @@ -742,6 +743,14 @@ static void stroke_list_certs(linked_list_t *list, char *label, { fprintf(out, " authkey: %#B\n", &authkey); } + + /* list optional pathLenConstraint */ + pathlen = x509->get_pathLenConstraint(x509); + if (pathlen != NO_PATH_LEN_CONSTRAINT) + { + fprintf(out, " pathlen: %d\n", pathlen); + } + } } enumerator->destroy(enumerator); |