# HG changeset patch # User William Ehlhardt # Date 1183614329 0 # Node ID 806c610ac5a0a8282f0a9348227fca8fe2003979 # Parent 2b4150624cf2178923af127e7667b5a82aed15b0 - Add init for x509_tls_peers pool diff -r 2b4150624cf2 -r 806c610ac5a0 libpurple/certificate.c --- 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; }