Mercurial > pidgin
comparison libpurple/certificate.c @ 18985:806c610ac5a0
- Add init for x509_tls_peers pool
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Thu, 05 Jul 2007 05:45:29 +0000 |
parents | 2b4150624cf2 |
children | dfd9f883b774 |
comparison
equal
deleted
inserted
replaced
18984:2b4150624cf2 | 18985:806c610ac5a0 |
---|---|
291 static PurpleCertificatePool x509_tls_peers; | 291 static PurpleCertificatePool x509_tls_peers; |
292 | 292 |
293 static gboolean | 293 static gboolean |
294 x509_tls_peers_init(void) | 294 x509_tls_peers_init(void) |
295 { | 295 { |
296 /* TODO: Set up key cache here if it isn't already done */ | 296 gchar *poolpath; |
297 | 297 int ret; |
298 | |
299 /* Set up key cache here if it isn't already done */ | |
300 poolpath = purple_certificate_pool_mkpath(&x509_tls_peers, NULL); | |
301 ret = purple_build_dir(poolpath, 0700); /* Make it this user only */ | |
302 | |
303 g_free(poolpath); | |
304 | |
305 g_return_val_if_fail(ret == 0, FALSE); | |
298 return TRUE; | 306 return TRUE; |
299 } | 307 } |
300 | 308 |
301 static gboolean | 309 static gboolean |
302 x509_tls_peers_cert_in_pool(const gchar *id) | 310 x509_tls_peers_cert_in_pool(const gchar *id) |