Move loading of feeds and status files out of opkg_conf_init().
[project/opkg-lede.git] / libopkg / opkg_pathfinder.c
index f1bd9407bdd91b119029260a33c1bb074aa7eb14..71c8c1183af34996d635b574ae5a55363e5334e5 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include "includes.h"
+#include "libbb/libbb.h"
 #include "opkg_message.h"
 
 #if defined(HAVE_SSLCURL) || defined(HAVE_OPENSSL)
@@ -55,7 +56,7 @@ static int pathfinder_verify_callback(X509_STORE_CTX *ctx, void *arg)
     int validated = pathfinder_dbus_verify(certdata_str, policy, 0, 0, &errmsg);
 
     if (!validated)
-        fprintf(stderr, "curlcb_pathfinder: Path verification failed: %s\n", errmsg);
+        opkg_msg(ERROR, "Path verification failed: %s.\n", errmsg);
 
     free(certdata_str);
     free(errmsg);