From: Daniel Carl Date: Wed, 15 Oct 2014 20:54:15 +0000 (+0200) Subject: Allow to set ca-bundle from config.h (#110). X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=a4f0a06ce3ba6d12a5dbf4ac10adbca7a28f243e;p=vimb.git Allow to set ca-bundle from config.h (#110). Added SETTING_CA_BUNDLE to config.h. --- diff --git a/src/config.def.h b/src/config.def.h index c105a59..4d34ae7 100644 --- a/src/config.def.h +++ b/src/config.def.h @@ -58,6 +58,8 @@ /* number of chars to be shown for ambiguous commands */ #define SHOWCMD_LEN 10 +/* parh to crt file for the certificate validation */ +#define SETTING_CA_BUNDLE "/etc/ssl/certs/ca-certificates.crt" #define SETTING_MAX_CONNS 25 #define SETTING_MAX_CONNS_PER_HOST 5 /* default font size for fonts in webview */ diff --git a/src/setting.c b/src/setting.c index 8f265da..008ba6d 100644 --- a/src/setting.c +++ b/src/setting.c @@ -191,7 +191,7 @@ void setting_init() setting_add("completion-fg-active", TYPE_COLOR, &"#ffffff", input_color, 0, &vb.style.comp_fg[VB_COMP_ACTIVE]); setting_add("completion-bg-normal", TYPE_COLOR, &"#656565", input_color, 0, &vb.style.comp_bg[VB_COMP_NORMAL]); setting_add("completion-bg-active", TYPE_COLOR, &"#777777", input_color, 0, &vb.style.comp_bg[VB_COMP_ACTIVE]); - setting_add("ca-bundle", TYPE_CHAR, &"/etc/ssl/certs/ca-certificates.crt", ca_bundle, 0, NULL); + setting_add("ca-bundle", TYPE_CHAR, &SETTING_CA_BUNDLE, ca_bundle, 0, NULL); setting_add("home-page", TYPE_CHAR, &SETTING_HOME_PAGE, NULL, 0, NULL); i = 1000; setting_add("hint-timeout", TYPE_INTEGER, &i, NULL, 0, NULL);