summaryrefslogtreecommitdiffstats
path: root/opkg_download.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:21:31 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:21:31 (EST)
commitc4e460e110a4451e7510ab56a6ee242f65cb0546 (patch)
treea692d6434a82adc3a9077071f669188d9ad95abf /opkg_download.c
parente2fd21015aeedba1a9936f46b185c41047ee034d (diff)
opkg: make gpg support optional
git-svn-id: http://opkg.googlecode.com/svn/trunk@28 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'opkg_download.c')
-rw-r--r--opkg_download.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/opkg_download.c b/opkg_download.c
index 2bdbb00..2f87eec 100644
--- a/opkg_download.c
+++ b/opkg_download.c
@@ -23,6 +23,7 @@
#include "opkg.h"
#include "opkg_download.h"
#include "opkg_message.h"
+#include "opkg_state.h"
#include "sprintf_alloc.h"
#include "xsystem.h"
@@ -296,6 +297,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
int
opkg_verify_file (char *text_file, char *sig_file)
{
+#ifdef HAVE_GPGME
int status = -1;
gpgme_ctx_t ctx;
gpgme_data_t sig, text;
@@ -335,4 +337,8 @@ opkg_verify_file (char *text_file, char *sig_file)
gpgme_release (ctx);
return status;
+#else
+ printf ("Signature check skipped because GPG support was not enabled in this build\n");
+ return 0;
+#endif
}