| 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) |