changeset 19204:2847b6c84d6c

- Implement x509_ca cert_in_pool
author William Ehlhardt <williamehlhardt@gmail.com>
date Mon, 13 Aug 2007 05:42:25 +0000
parents 6034b8db9dc1
children fff2bc09ec1a
files libpurple/certificate.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 *