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/pluto/x509.c | |
parent | 5d1d7e82b5094c6be9f6cf143ea8bcd2332e9c4b (diff) | |
download | strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.bz2 strongswan-fae322219f9025fe75b4225d6f174b2096cd60e6.tar.xz |
output optional pathLenConstraint in ipsec listcacerts
Diffstat (limited to 'src/pluto/x509.c')
-rw-r--r-- | src/pluto/x509.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pluto/x509.c b/src/pluto/x509.c index 47c9cecff..25b4e148c 100644 --- a/src/pluto/x509.c +++ b/src/pluto/x509.c @@ -505,7 +505,7 @@ void list_x509cert_chain(const char *caption, x509cert_t* cert, enumerator_t *enumerator; char buf[BUF_LEN]; char *pos = buf; - int len = BUF_LEN; + int len = BUF_LEN, pathlen; bool first_altName = TRUE; identification_t *id; time_t notBefore, notAfter; @@ -589,6 +589,14 @@ void list_x509cert_chain(const char *caption, x509cert_t* cert, { whack_log(RC_COMMENT, " authkey: %#B", &authkey); } + + /* list optional pathLenConstraint */ + pathlen = x509->get_pathLenConstraint(x509); + if (pathlen != NO_PATH_LEN_CONSTRAINT) + { + whack_log(RC_COMMENT, " pathlen: %d", pathlen); + } + } cert = cert->next; } |