libpurple/certificate.c

branch
soc.2007.certmgr
changeset 19007
f3c3ddf37812
parent 19003
0998b8659565
child 19015
2e55af5c1242
equal deleted inserted replaced
19006:ffeab9433f97 19007:f3c3ddf37812
242 242
243 /* If both provided references are NULL, what are you doing calling 243 /* If both provided references are NULL, what are you doing calling
244 this? */ 244 this? */
245 g_return_val_if_fail( (activation != NULL) || (expiration != NULL), FALSE); 245 g_return_val_if_fail( (activation != NULL) || (expiration != NULL), FALSE);
246 246
247 /* Fulfill the caller's requests, if possible */ 247 /* Throw the request on down to the certscheme */
248 if (activation) { 248 return (scheme->get_times)(crt, activation, expiration);
249 g_return_val_if_fail(scheme->get_activation, FALSE);
250 *activation = scheme->get_activation(crt);
251 }
252 if (expiration) {
253 g_return_val_if_fail(scheme->get_expiration, FALSE);
254 *expiration = scheme->get_expiration(crt);
255 }
256
257 return TRUE;
258 } 249 }
259 250
260 251
261 gchar * 252 gchar *
262 purple_certificate_pool_mkpath(PurpleCertificatePool *pool, const gchar *id) 253 purple_certificate_pool_mkpath(PurpleCertificatePool *pool, const gchar *id)

mercurial