changeset 19006:dc60287ce426

- Add get_activation_time and get_expiration_time to CertificateScheme struct - Modify GnuTLS plugin to match
author William Ehlhardt <williamehlhardt@gmail.com>
date Mon, 09 Jul 2007 03:12:15 +0000
parents 2e064085b7df
children 8228c5b1d181
files libpurple/certificate.h libpurple/plugins/ssl/ssl-gnutls.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.h	Sun Jul 08 04:27:02 2007 +0000
+++ b/libpurple/certificate.h	Mon Jul 09 03:12:15 2007 +0000
@@ -224,6 +224,12 @@
 	 * @return Newly allocated string with the certificate subject.
 	 */
 	gchar * (* get_subject_name)(PurpleCertificate *crt);
+
+	/** Retrieve the certificate activation time */
+	time_t (* get_activation_time)(PurpleCertificate *crt);
+	/** Retrieve the expiration time */
+	time_t (* get_expiration_time)(PurpleCertificate *crt);
+	
 	/* TODO: Fill out this structure */
 };
 
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Sun Jul 08 04:27:02 2007 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Mon Jul 09 03:12:15 2007 +0000
@@ -723,7 +723,9 @@
 	NULL,                            /* Subject */
 	NULL,                            /* Unique ID */
 	NULL,                            /* Issuer Unique ID */
-	x509_common_name                 /* Subject name */
+	x509_common_name,                /* Subject name */
+	NULL,                            /* Activation time */
+	NULL                             /* Expiration time */
 };
 
 static PurpleSslOps ssl_ops =