Mercurial > pidgin.yaz
diff libpurple/certificate.c @ 19080:3bdede51c007
- Expose get_unique_id and get_issuer_unique_id through libpurple functions
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Tue, 07 Aug 2007 23:26:54 +0000 |
parents | 3987f76c0e4b |
children | bdd8911d5031 |
line wrap: on
line diff
--- a/libpurple/certificate.c Tue Aug 07 20:29:35 2007 +0000 +++ b/libpurple/certificate.c Tue Aug 07 23:26:54 2007 +0000 @@ -245,6 +245,26 @@ } gchar * +purple_certificate_get_unique_id(PurpleCertificate *crt) +{ + g_return_val_if_fail(crt, NULL); + g_return_val_if_fail(crt->scheme, NULL); + g_return_val_if_fail(crt->scheme->get_unique_id, NULL); + + return (crt->scheme->get_unique_id)(crt); +} + +gchar * +purple_certificate_get_issuer_unique_id(PurpleCertificate *crt) +{ + g_return_val_if_fail(crt, NULL); + g_return_val_if_fail(crt->scheme, NULL); + g_return_val_if_fail(crt->scheme->get_issuer_unique_id, NULL); + + return (crt->scheme->get_issuer_unique_id)(crt); +} + +gchar * purple_certificate_get_subject_name(PurpleCertificate *crt) { PurpleCertificateScheme *scheme;