diff libpurple/certificate.c @ 23332:390384053186

Add a configure option, --with-ssl-certificates to allow packagers to specify a system-wide SSL CA certificates directory. On Debian, this would be /etc/ssl/certs. Also, when set, we don't install our SSL CA certs. Refs #6036
author Richard Laager <rlaager@wiktel.com>
date Mon, 09 Jun 2008 02:10:18 +0000
parents f3b7a07a7607
children e72e03fb5ef1
line wrap: on
line diff
--- a/libpurple/certificate.c	Mon Jun 09 00:14:40 2008 +0000
+++ b/libpurple/certificate.c	Mon Jun 09 02:10:18 2008 +0000
@@ -745,8 +745,12 @@
 		x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
 						   "ca-certs", NULL));
 #else
+# ifdef SSL_CERTIFICATES_DIR
+		x509_ca_paths = g_list_append(NULL, SSL_CERTIFICATES_DIR);
+# else
 		x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
 						   "purple", "ca-certs", NULL));
+# endif
 #endif
 	}