Thu, 05 Jul 2007 05:45:29 +0000
- Add init for x509_tls_peers pool
| libpurple/certificate.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/certificate.c Thu Jul 05 05:35:23 2007 +0000 +++ b/libpurple/certificate.c Thu Jul 05 05:45:29 2007 +0000 @@ -293,8 +293,16 @@ static gboolean x509_tls_peers_init(void) { - /* TODO: Set up key cache here if it isn't already done */ + gchar *poolpath; + int ret; + + /* Set up key cache here if it isn't already done */ + poolpath = purple_certificate_pool_mkpath(&x509_tls_peers, NULL); + ret = purple_build_dir(poolpath, 0700); /* Make it this user only */ + g_free(poolpath); + + g_return_val_if_fail(ret == 0, FALSE); return TRUE; }