output optional pathLenConstraint in ipsec listcacerts

This commit is contained in:
Andreas Steffen
2009-11-04 07:30:07 +01:00
parent 5d1d7e82b5
commit fae322219f
3 changed files with 27 additions and 1 deletions
+9 -1
View File
@@ -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;
}