From 5b0cc477cb1b0e30737b031ef0a86fa40a05ee32 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 12 Feb 2020 08:06:49 +0100 Subject: [PATCH] support OTR_CAPATH in defaults closes #336 --- misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc.c b/misc.c index 2599693..8c138f7 100644 --- a/misc.c +++ b/misc.c @@ -157,6 +157,11 @@ void get_defaults(char *filename, struct udata *ud) ud->clientid = (value) ? strdup(value) : NULL; } + if (config_lookup_string(cf, "OTR_CAPATH", &value) != CONFIG_FALSE) { + if (ud->capath) free(ud->capath); + ud->capath = (value) ? strdup(value) : NULL; + } + if (config_lookup_string(cf, "OTR_CAFILE", &value) != CONFIG_FALSE) { if (ud->cafile) free(ud->cafile); ud->cafile = (value) ? strdup(value) : NULL;