# HG changeset patch # User William Ehlhardt # Date 1186984689 0 # Node ID a6ab0ea47d0f865404587894bf08138828f0870b # Parent 7b81934f4c851074d510923a516183b8b8d1b363 - Implement x509_ca_get_idlist diff -r 7b81934f4c85 -r a6ab0ea47d0f libpurple/certificate.c --- a/libpurple/certificate.c Mon Aug 13 05:55:02 2007 +0000 +++ b/libpurple/certificate.c Mon Aug 13 05:58:09 2007 +0000 @@ -828,8 +828,17 @@ static GList * x509_ca_get_idlist(void) { + GList *l, *idlist; + g_return_val_if_fail(x509_ca_lazy_init(), NULL); - return NULL; + + idlist = NULL; + for (l = x509_ca_certs; l; l = l->next) { + x509_ca_element *el = l->data; + idlist = g_list_prepend(idlist, g_strdup(el->dn)); + } + + return idlist; }