Fix potential undefined references to FILE, for libopkg users.
[oweals/opkg-lede.git] / libopkg / opkg_pathfinder.c
index a53dd8ee9370ebd3b525e56966fc2b25bf0290cc..bf7dab68a55dff1061fd72df4f2c9416dabf09b5 100644 (file)
 
 #include <openssl/ssl.h>
 #include <libpathfinder.h>
-
+#include <stdlib.h>
 #if defined(HAVE_SSLCURL)
 #include <curl/curl.h>
 #endif
 
-#include "includes.h"
 #include "libbb/libbb.h"
 #include "opkg_message.h"
 
@@ -56,7 +55,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);