diff options
-rw-r--r-- | libopkg/opkg_conf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index 1312c41..a261a18 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -75,8 +75,10 @@ int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options) { "proxy_user", OPKG_OPT_TYPE_STRING, &conf->proxy_user }, { "query-all", OPKG_OPT_TYPE_BOOL, &conf->query_all }, { "verbosity", OPKG_OPT_TYPE_BOOL, &conf->verbosity }, +#if defined(HAVE_OPENSSL) { "signature_ca_file", OPKG_OPT_TYPE_STRING, &conf->signature_ca_file }, { "signature_ca_path", OPKG_OPT_TYPE_STRING, &conf->signature_ca_path }, +#endif { NULL } }; @@ -366,6 +368,11 @@ void opkg_conf_deinit(opkg_conf_t *conf) opkg_conf_free_string(&conf->cache); +#if defined(HAVE_OPENSSL) + opkg_conf_free_string(&conf->signature_ca_file); + opkg_conf_free_string(&conf->signature_ca_path); +#endif + if (conf->verbosity > 1) { int i; hash_table_t *hashes[] = { |