Mercurial > pidgin
changeset 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 |
files | libpurple/certificate.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }