[seahorse] Check the OpenPGP engine only
- From: Adam Schreiber <sadam src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] Check the OpenPGP engine only
- Date: Wed, 17 Feb 2010 01:27:16 +0000 (UTC)
commit 3593d4c58363b8d584aae179f532ba5ceedd5d9e
Author: nobled <nobled dreamwidth org>
Date: Tue Feb 16 22:27:48 2010 +0000
Check the OpenPGP engine only
pgp/seahorse-gpgme.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pgp/seahorse-gpgme.c b/pgp/seahorse-gpgme.c
index c6af2ea..d472b6e 100644
--- a/pgp/seahorse-gpgme.c
+++ b/pgp/seahorse-gpgme.c
@@ -220,6 +220,10 @@ seahorse_gpgme_get_keytype_table (SeahorseKeyTypeTable *table)
gerr = gpgme_get_engine_info (&engine);
g_return_val_if_fail (GPG_IS_OK (gerr), gerr);
+ while (engine && engine->protocol != GPGME_PROTOCOL_OpenPGP)
+ engine = engine->next;
+ g_return_val_if_fail (engine != NULL, GPG_E (GPG_ERR_GENERAL));
+
ver = seahorse_util_parse_version (engine->version);
if (ver >= VER_2012 || (ver >= VER_1410 && ver < VER_190))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]