# HG changeset patch # User William Ehlhardt # Date 1186983745 0 # Node ID 2847b6c84d6c49d0edd0c5ae572a2814995aa798 # Parent 6034b8db9dc1e045fe06a1bf0190ddee8e83957e - Implement x509_ca cert_in_pool diff -r 6034b8db9dc1 -r 2847b6c84d6c libpurple/certificate.c --- a/libpurple/certificate.c Mon Aug 13 05:40:33 2007 +0000 +++ b/libpurple/certificate.c Mon Aug 13 05:42:25 2007 +0000 @@ -746,12 +746,16 @@ 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 *