comparison mcabber/src/pgp.c @ 1057:4cdf19d9c74e

PGP: Fix a small bug in initialization
author Mikael Berthe <mikael@lilotux.net>
date Tue, 28 Nov 2006 07:14:59 +0100
parents 082d55152a25
children 265e1d873d3e
comparison
equal deleted inserted replaced
1056:5b3ecae91c95 1057:4cdf19d9c74e
53 { 53 {
54 gpgme_error_t err; 54 gpgme_error_t err;
55 55
56 // Check for version and OpenPGP protocol support. 56 // Check for version and OpenPGP protocol support.
57 if (!gpgme_check_version(MIN_GPGME_VERSION)) { 57 if (!gpgme_check_version(MIN_GPGME_VERSION)) {
58 scr_LogPrint(LPRINT_LOGNORM|LPRINT_NOTUTF8, 58 scr_LogPrint(LPRINT_LOGNORM,
59 "GPGME initialization error: %s", gpgme_strerror(err)); 59 "GPGME initialization error: Bad library version");
60 return -1; 60 return -1;
61 } 61 }
62 62
63 err = gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP); 63 err = gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP);
64 if (err) { 64 if (err) {