diff libpurple/certificate.h @ 18188:e6271671eb24

- Expose some more functions in the x509 CertificateScheme. Doesn't compile :(
author William Ehlhardt <williamehlhardt@gmail.com>
date Tue, 19 Jun 2007 17:20:16 +0000
parents 55a0b0a42000
children 030a2209ae96
line wrap: on
line diff
--- a/libpurple/certificate.h	Tue Jun 19 16:07:33 2007 +0000
+++ b/libpurple/certificate.h	Tue Jun 19 17:20:16 2007 +0000
@@ -68,6 +68,30 @@
 	 */
 	gchar * name;
 
+	/** User-friendly name for this type
+	 *  ex: N_("X.509 Certificates")
+	 */
+	gchar * fullname;
+
+	/** Imports a certificate from a file
+	 *
+	 *  @param filename   File to import the certificate from
+	 *  @return           Pointer to the newly allocated Certificate struct
+	 *                    or NULL on failure.
+	 */
+	Certificate * (* import_certificate)(gchar * filename);
+
+	/** Destroys and frees a Certificate structure
+	 *
+	 *  Destroys a Certificate's internal data structures and calls
+	 *  free(crt)
+	 *
+	 *  @param crt  Certificate instance to be destroyed. It WILL NOT be
+	 *              destroyed if it is not of the correct
+	 *              CertificateScheme. Can be NULL
+	 */
+	void (* destroy_certificate)(Certificate * crt);
+	
 	/* TODO: Fill out this structure */
 };