diff libpurple/certificate.c @ 19067:6c0aad79c4c5

- Change the internal structure of activation/expiration times to match the "NSS way", which is already how the libpurple public interface works - Change ssl-gnutls to match the above
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 03 Aug 2007 06:12:42 +0000
parents 2f51578e6602
children a0138be8d725
line wrap: on
line diff
--- a/libpurple/certificate.c	Wed Aug 01 07:39:38 2007 +0000
+++ b/libpurple/certificate.c	Fri Aug 03 06:12:42 2007 +0000
@@ -244,17 +244,8 @@
 	   this? */
 	g_return_val_if_fail( (activation != NULL) || (expiration != NULL), FALSE);
 
-	/* Fulfill the caller's requests, if possible */
-	if (activation) {
-		g_return_val_if_fail(scheme->get_activation, FALSE);
-		*activation = scheme->get_activation(crt);
-	}
-	if (expiration) {
-		g_return_val_if_fail(scheme->get_expiration, FALSE);
-		*expiration = scheme->get_expiration(crt);
-	}
-
-	return TRUE;
+	/* Throw the request on down to the certscheme */
+	return (scheme->get_times)(crt, activation, expiration);
 }