libpurple/certificate.h

branch
soc.2007.certmgr
changeset 18573
c7fd4fbb4339
parent 18572
8c2c02e8fa9e
child 18577
7b4c95fb042d
--- a/libpurple/certificate.h	Thu Jul 05 04:59:36 2007 +0000
+++ b/libpurple/certificate.h	Thu Jul 05 05:35:23 2007 +0000
@@ -402,6 +402,19 @@
 gchar *
 purple_certificate_get_subject_name(PurpleCertificate *crt);
 
+/**
+ * Helper function for generating file paths in ~/.purple/certificates for
+ * CertificatePools that use them.
+ *
+ * @todo Passing in filesystem-unfriendly characters will cause breakage!
+ * @param pool   CertificatePool to build a path for
+ * @param id     Key to look up a Certificate by. May be NULL.
+ * @return A newly allocated path of the form
+ *         ~/.purple/certificates/scheme_name/pool_name/unique_id
+ */
+gchar *
+purple_certificate_pool_mkpath(PurpleCertificatePool *pool, const gchar *id);
+
 /*@}*/
 
 /*****************************************************************************/

mercurial