aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/control/interfaces
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-08-07 20:32:11 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-08-07 20:32:11 +0000
commitf51d505e5eff07e6de26fb0a655bd0b12546b192 (patch)
tree3cd0ef5dd0735bd3ecd1342d39768fac9bb23404 /src/charon/control/interfaces
parent8f5b363c30bf0b19758e0cb9a7d8ccb421d07779 (diff)
downloadstrongswan-f51d505e5eff07e6de26fb0a655bd0b12546b192.tar.bz2
strongswan-f51d505e5eff07e6de26fb0a655bd0b12546b192.tar.xz
implemented listing of attribute certificates
Diffstat (limited to 'src/charon/control/interfaces')
-rwxr-xr-xsrc/charon/control/interfaces/stroke_interface.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/charon/control/interfaces/stroke_interface.c b/src/charon/control/interfaces/stroke_interface.c
index 71d444491..720038238 100755
--- a/src/charon/control/interfaces/stroke_interface.c
+++ b/src/charon/control/interfaces/stroke_interface.c
@@ -38,6 +38,7 @@
#include <stroke.h>
#include <daemon.h>
#include <crypto/x509.h>
+#include <crypto/ac.h>
#include <crypto/ca.h>
#include <crypto/crl.h>
#include <control/interface_manager.h>
@@ -1380,6 +1381,23 @@ static void stroke_list(stroke_msg_t *msg, FILE *out)
{
list_auth_certificates(AUTH_AA, "AA", msg->list.utc, out);
}
+ if (msg->list.flags & LIST_ACERTS)
+ {
+ x509ac_t *cert;
+
+ iterator = charon->credentials->create_acert_iterator(charon->credentials);
+ if (iterator->get_count(iterator))
+ {
+ fprintf(out, "\n");
+ fprintf(out, "List of X.509 Attribute Certificates:\n");
+ fprintf(out, "\n");
+ }
+ while (iterator->iterate(iterator, (void**)&cert))
+ {
+ cert->list(cert, out, msg->list.utc);
+ }
+ iterator->destroy(iterator);
+ }
if (msg->list.flags & LIST_CAINFOS)
{
ca_info_t *ca_info;