libpurple/certificate.c

branch
soc.2007.certmgr
changeset 18574
ee5a638ce111
parent 18573
c7fd4fbb4339
child 18575
24299c91b963
equal deleted inserted replaced
18573:c7fd4fbb4339 18574:ee5a638ce111
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)

mercurial