From 813388093465b8723394960bc8e489fa64bb1a85 Mon Sep 17 00:00:00 2001 From: pixdamix Date: Thu, 05 Nov 2009 11:07:47 -0500 Subject: Some refactoring of pathfinder support git-svn-id: http://opkg.googlecode.com/svn/trunk@263 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_conf.c') diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index cfbdc5b..b6ca4a8 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -80,6 +80,9 @@ int opkg_init_options_array(const opkg_conf_t *conf, opkg_option_t **options) { "signature_ca_file", OPKG_OPT_TYPE_STRING, &conf->signature_ca_file }, { "signature_ca_path", OPKG_OPT_TYPE_STRING, &conf->signature_ca_path }, #endif +#if defined(HAVE_PATHFINDER) + { "check_x509_path", OPKG_OPT_TYPE_INT, &conf->check_x509_path }, +#endif #if defined(HAVE_SSLCURL) && defined(HAVE_CURL) { "ssl_engine", OPKG_OPT_TYPE_STRING, &conf->ssl_engine }, { "ssl_cert", OPKG_OPT_TYPE_STRING, &conf->ssl_cert }, @@ -130,6 +133,10 @@ int opkg_conf_init(opkg_conf_t *conf, const args_t *args) memset(conf, 0, sizeof(opkg_conf_t)); +#if defined(HAVE_PATHFINDER) + conf->check_x509_path = 1; +#endif + pkg_src_list_init(&conf->pkg_src_list); nv_pair_list_init(&tmp_dest_nv_pair_list); -- cgit v0.9.1