Mercurial > pidgin.yaz
changeset 19209:a6ab0ea47d0f
- Implement x509_ca_get_idlist
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Mon, 13 Aug 2007 05:58:09 +0000 |
parents | 7b81934f4c85 |
children | 74a3f6606cf6 |
files | libpurple/certificate.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }