diff options
author | William Ehlhardt <williamehlhardt@gmail.com> | 2007-08-13 05:42:25 +0000 |
---|---|---|
committer | William Ehlhardt <williamehlhardt@gmail.com> | 2007-08-13 05:42:25 +0000 |
commit | df6cef28c7749d30aa8a87a667bfaabef53709d3 (patch) | |
tree | 968bf2c72fa7845583e3efc586b9f966455e2601 | |
parent | 2b8fffaf20c37999622bc786d3399a4c06af5faf (diff) | |
download | pidgin-df6cef28c7749d30aa8a87a667bfaabef53709d3.tar.gz |
- Implement x509_ca cert_in_pool
-rw-r--r-- | libpurple/certificate.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libpurple/certificate.c b/libpurple/certificate.c index cef2f7f780..a19cced3f1 100644 --- a/libpurple/certificate.c +++ b/libpurple/certificate.c @@ -746,12 +746,16 @@ x509_ca_locate_crt(GList *lst, const gchar *dn) static gboolean x509_ca_cert_in_pool(const gchar *id) { - gboolean ret = FALSE; - g_return_val_if_fail(x509_ca_lazy_init(), FALSE); g_return_val_if_fail(id, FALSE); - return ret; + if (x509_ca_locate_crt(x509_ca_certs, id) != NULL) { + return TRUE; + } else { + return FALSE; + } + + return FALSE; } static PurpleCertificate * |