diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-06 09:43:20 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-04-06 09:43:20 +0000 |
commit | 4c56bd64e5c2c02df71dd4aa7b296a0d0cc892ce (patch) | |
tree | 3b1bb3f8bf611a8aebba555ca16596bef3157bef /src/charon/threads/stroke_interface.c | |
parent | 3c5c3431b301c6b43bc8dfc1cae8c81ed943efba (diff) | |
download | strongswan-4c56bd64e5c2c02df71dd4aa7b296a0d0cc892ce.tar.bz2 strongswan-4c56bd64e5c2c02df71dd4aa7b296a0d0cc892ce.tar.xz |
removed list_crls() and list_ocsp() methods
Diffstat (limited to 'src/charon/threads/stroke_interface.c')
-rwxr-xr-x | src/charon/threads/stroke_interface.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/charon/threads/stroke_interface.c b/src/charon/threads/stroke_interface.c index 9b625eb59..a9074debb 100755 --- a/src/charon/threads/stroke_interface.c +++ b/src/charon/threads/stroke_interface.c @@ -1132,7 +1132,26 @@ static void stroke_list(stroke_msg_t *msg, FILE *out) } if (msg->list.flags & LIST_CRLS) { - charon->credentials->list_crls(charon->credentials, out, msg->list.utc); + ca_info_t *ca_info; + bool first = TRUE; + + iterator = charon->credentials->create_cainfo_iterator(charon->credentials); + + while (iterator->iterate(iterator, (void **)&ca_info)) + { + if (ca_info->has_crl(ca_info)) + { + if (first) + { + fprintf(out, "\n"); + fprintf(out, "List of X.509 CRLs:\n"); + fprintf(out, "\n"); + first = FALSE; + } + ca_info->list_crl(ca_info, out, msg->list.utc); + } + } + iterator->destroy(iterator); } if (msg->list.flags & LIST_OCSPCERTS) { @@ -1140,7 +1159,26 @@ static void stroke_list(stroke_msg_t *msg, FILE *out) } if (msg->list.flags & LIST_OCSP) { - charon->credentials->list_ocsp(charon->credentials, out, msg->list.utc); + ca_info_t *ca_info; + bool first = TRUE; + + iterator = charon->credentials->create_cainfo_iterator(charon->credentials); + + while (iterator->iterate(iterator, (void **)&ca_info)) + { + if (ca_info->has_certinfos(ca_info)) + { + if (first) + { + fprintf(out, "\n"); + fprintf(out, "List of OCSP responses:\n"); + first = FALSE; + } + fprintf(out, "\n"); + ca_info->list_certinfos(ca_info, out, msg->list.utc); + } + } + iterator->destroy(iterator); } } |