changeset 19023:eb86ff3ba21a

- Add get_pools, get_verifiers, and get_schemes
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 14 Jul 2007 02:54:48 +0000
parents 1f07f96dc1ce
children 264f00bc8f22
files libpurple/certificate.c libpurple/certificate.h
diffstat 2 files changed, 40 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Sat Jul 14 02:35:54 2007 +0000
+++ b/libpurple/certificate.c	Sat Jul 14 02:54:48 2007 +0000
@@ -754,6 +754,12 @@
 	return NULL;
 }
 
+GList *
+purple_certificate_get_schemes(void)
+{
+	return cert_schemes;
+}
+
 gboolean
 purple_certificate_register_scheme(PurpleCertificateScheme *scheme)
 {
@@ -820,6 +826,12 @@
 }
 
 
+GList *
+purple_certificate_get_verifiers(void)
+{
+	return cert_verifiers;
+}
+
 gboolean
 purple_certificate_register_verifier(PurpleCertificateVerifier *vr)
 {
@@ -883,6 +895,11 @@
 
 }
 
+GList *
+purple_certificate_get_pools(void)
+{
+	return cert_pools;
+}
 
 gboolean
 purple_certificate_register_pool(PurpleCertificatePool *pool)
--- a/libpurple/certificate.h	Sat Jul 14 02:35:54 2007 +0000
+++ b/libpurple/certificate.h	Sat Jul 14 02:54:48 2007 +0000
@@ -554,6 +554,14 @@
 PurpleCertificateScheme *
 purple_certificate_find_scheme(const gchar *name);
 
+/**
+ * Get all registered CertificateSchemes
+ *
+ * @return GList pointing to all registered CertificateSchemes
+ */
+GList *
+purple_certificate_get_schemes(void);
+
 /** Register a CertificateScheme with libpurple
  *
  * No two schemes can be registered with the same name; this function enforces
@@ -583,6 +591,13 @@
 PurpleCertificateVerifier *
 purple_certificate_find_verifier(const gchar *scheme_name, const gchar *ver_name);
 
+/**
+ * Get the list of registered CertificateVerifiers
+ *
+ * @return GList of all registered PurpleCertificateVerifier
+ */
+GList *
+purple_certificate_get_verifiers(void);
 
 /**
  * Register a CertificateVerifier with libpurple
@@ -611,6 +626,14 @@
 purple_certificate_find_pool(const gchar *scheme_name, const gchar *pool_name);
 
 /**
+ * Get the list of registered Pools
+ *
+ * @return GList of all registered PurpleCertificatePool s
+ */
+GList *
+purple_certificate_get_pools(void);
+
+/**
  * Register a CertificatePool with libpurple and call its init function
  *
  * @param pool   Pool to register.