openbsd-ports/www/dillo/patches/patch-dpi_https_c
ajacoutot 8c6ef5e35a - load certificates from /etc/ssl/cert.pem
from James Turner (MAINTAINER)
2008-10-21 07:14:20 +00:00

21 lines
674 B
Plaintext

$OpenBSD: patch-dpi_https_c,v 1.2 2008/10/21 07:14:20 ajacoutot Exp $
--- dpi/https.c.orig Mon Oct 13 16:49:46 2008
+++ dpi/https.c Tue Oct 21 09:12:22 2008
@@ -69,7 +69,6 @@
#define ENABLE_SSL
-#undef ENABLE_SSL
#ifdef ENABLE_SSL
#include <openssl/ssl.h>
@@ -155,7 +154,7 @@ static void yes_ssl_support(void)
/*FIXME - provide for sysconfdir variables and such*/
if (exit_error == 0){
if (SSL_CTX_load_verify_locations(
- ssl_context, NULL, "/etc/ssl/certs/" ) == 0){
+ ssl_context, "/etc/ssl/cert.pem", "/etc/ssl/certs/" ) == 0){
MSG("Error opening system x509 certificate location\n");
exit_error = 1;
}