Mercurial > pidgin.yaz
changeset 19060:c79b54f03f9d
- Add purple_certificate_pool_get_scheme helper function
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Mon, 30 Jul 2007 06:50:31 +0000 |
parents | a75d01f3a98e |
children | 3d6576b8c88a |
files | libpurple/certificate.c libpurple/certificate.h |
diffstat | 2 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/certificate.c Mon Jul 30 01:35:00 2007 +0000 +++ b/libpurple/certificate.c Mon Jul 30 06:50:31 2007 +0000 @@ -300,6 +300,15 @@ return TRUE; } +PurpleCertificateScheme * +purple_certificate_pool_get_scheme(PurpleCertificatePool *pool) +{ + g_return_val_if_fail(pool, NULL); + g_return_val_if_fail(pool->scheme_name, NULL); + + return purple_certificate_find_scheme(pool->scheme_name); +} + gboolean purple_certificate_pool_contains(PurpleCertificatePool *pool, const gchar *id) {
--- a/libpurple/certificate.h Mon Jul 30 01:35:00 2007 +0000 +++ b/libpurple/certificate.h Mon Jul 30 06:50:31 2007 +0000 @@ -509,6 +509,17 @@ purple_certificate_pool_usable(PurpleCertificatePool *pool); /** + * Looks up the scheme the pool operates under + * + * @param pool Pool to get the scheme of + * + * @return Pointer to the pool's scheme, or NULL if it isn't loaded. + * @see purple_certificate_pool_usable() + */ +PurpleCertificateScheme * +purple_certificate_pool_get_scheme(PurpleCertificatePool *pool); + +/** * Check for presence of an ID in a pool. * @param pool Pool to look in * @param id ID to look for