summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-02-13 21:46:33 (EST)
committer graham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2011-02-13 21:46:33 (EST)
commita28f22ee5c9f868c733572048bbbb1217957507b (patch)
tree9a23670d3fad226faa15ef289a32d9ffd3c4b598
parent0f54da55b8717543b08596e58c022ae49e70a184 (diff)
Call gpgme_check_version() before using other gpgpe functions.
The function initializes some sub-systems, and for this reason alone it must be invoked early in your program, before you make use of the other functions in GPGME. see http://pyme.sourceforge.net/doc/gpgme/Library-Version-Check.html Patch from Bernhard Guillon. git-svn-id: http://opkg.googlecode.com/svn/trunk@602 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_download.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index b1f009f..16502d1 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -340,6 +340,8 @@ opkg_verify_file (char *text_file, char *sig_file)
gpgme_signature_t s;
char *trusted_path = NULL;
+ gpgme_check_version (NULL);
+
err = gpgme_new (&ctx);
if (err)