# HG changeset patch # User William Ehlhardt # Date 1184632135 0 # Node ID 3f929a770f1b14c017c62b32cc727a150b8faffa # Parent 86403f33720b346edb60026742db3d838baa9a8d - Add debug code to spit a list of all certificates in all pools when the "Certificates" dialog is opened. diff -r 86403f33720b -r 3f929a770f1b pidgin/gtkcertmgr.c --- a/pidgin/gtkcertmgr.c Tue Jul 17 00:15:40 2007 +0000 +++ b/pidgin/gtkcertmgr.c Tue Jul 17 00:28:55 2007 +0000 @@ -28,6 +28,7 @@ #include "pidgin.h" #include "certificate.h" +#include "debug.h" #include "notify.h" #include "gtkcertmgr.h" @@ -35,4 +36,29 @@ void pidgin_certmgr_show(void) { purple_notify_info(NULL, "Certificate Manager!!!1", "Certificates!!!", "LOL"); + /* Enumerate all the certificates on file */ + { + GList *idlist, *poollist; + + for ( poollist = purple_certificate_get_pools(); + poollist; + poollist = poollist->next ) { + PurpleCertificatePool *pool = poollist->data; + GList *l; + + purple_debug_info("gtkcertmgr", + "Pool %s found for scheme %s -" + "Enumerating certificates:\n", + pool->name, pool->scheme_name); + + idlist = purple_certificate_pool_get_idlist(pool); + + for (l=idlist; l; l = l->next) { + purple_debug_info("gtkcertmgr", + "- %s\n", + (gchar *) l->data); + } /* idlist */ + purple_certificate_pool_destroy_idlist(idlist); + } /* poollist */ + } }