moved listing of crls to local_credential_store and ca
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 3 Mar 2007 21:10:22 +0000 (21:10 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 3 Mar 2007 21:10:22 +0000 (21:10 -0000)
src/charon/threads/stroke_interface.c

index 268fe56..0c523d8 100755 (executable)
@@ -1118,20 +1118,7 @@ static void stroke_list(stroke_msg_t *msg, FILE *out)
        }
        if (msg->list.flags & LIST_CRLS)
        {
-               crl_t *crl;
-               
-               iterator = charon->credentials->create_crl_iterator(charon->credentials);
-               if (iterator->get_count(iterator))
-               {
-                       fprintf(out, "\n");
-                       fprintf(out, "List of X.509 CRLs:\n");
-                       fprintf(out, "\n");
-               }
-               while (iterator->iterate(iterator, (void**)&crl))
-               {
-                       fprintf(out, "%#U\n", crl, msg->list.utc);
-               }
-               iterator->destroy(iterator);
+               charon->credentials->list_crls(charon->credentials, out, msg->list.utc);
        }
 }