diff libpurple/certificate.h @ 19012:b1090cbfc286

- Add expiration/activation functions for Certificates
author William Ehlhardt <williamehlhardt@gmail.com>
date Thu, 12 Jul 2007 01:10:04 +0000
parents b4207894b534
children d6f902265076
line wrap: on
line diff
--- a/libpurple/certificate.h	Thu Jul 12 00:55:35 2007 +0000
+++ b/libpurple/certificate.h	Thu Jul 12 01:10:04 2007 +0000
@@ -429,6 +429,18 @@
 gboolean
 purple_certificate_check_subject_name(PurpleCertificate *crt, const gchar *name);
 
+/**
+ * Get the expiration/activation times.
+ *
+ * @param crt          Certificate instance
+ * @param activation   Reference to store the activation time at. May be NULL
+ *                     if you don't actually want it.
+ * @param expiration   Reference to store the expiration time at. May be NULL
+ *                     if you don't actually want it.
+ * @return TRUE if the requested values were obtained, otherwise FALSE.
+ */
+gboolean
+purple_certificate_get_times(PurpleCertificate *crt, time_t *activation, time_t *expiration);
 
 /*@}*/