GNOME Bugzilla – Bug 701987
Erroneous warning when the "encrypt to self" key is selected
Last modified: 2013-06-18 13:40:14 UTC
Created attachment 246482 [details] [review] Avoid repeating the self encryption key in cryptui_key_chooser_get_recipients() tool/seahorse-tool.c:prompt_recipients() contains the following test: if (gerr == 0 && num != keys->len) g_warning ("couldn't load all the keys (%d/%d) from GPGME", keys->len, num); This assumes that cryptui_prompt_recipients() will not return any duplicated recipients. Unfortunately, it can currently happen when the key selected with the "always encrypt to self" option is also selected in the recipient list. The attached patch modifies cryptui_key_chooser_get_recipients() to skip adding the key twice. This is also related to: https://bugzilla.gnome.org/show_bug.cgi?id=415268
Attachment 246482 [details] pushed as f110e1c - Avoid repeating the self encryption key in cryptui_key_chooser_get_recipients()