Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F5300480
patch-properly-select-available-key.diff
wteiken (Wilfried Teiken)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
wteiken
Nov 20 2023, 4:29 PM
2023-11-20 16:29:21 (UTC+1)
Size
600 B
Subscribers
None
patch-properly-select-available-key.diff
View Options
diff --git g10/getkey.c.orig g10/getkey.c
index 92f3eb1..c33bcaa 100644
--- g10/getkey.c.orig
+++ g10/getkey.c
@@ -3771,6 +3771,12 @@ finish_lookup (kbnode_t keyblock, unsigned int req_usage, int want_exact,
continue;
}
+ if (secret_key_avail < last_secret_key_avail)
+ {
+ if (DBG_LOOKUP)
+ log_debug ("\tskipping subkey with lower avail\n");
+ continue;
+ }
if (secret_key_avail > last_secret_key_avail)
{
/* Use this key. */
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/df/38e3027fc100a16131c938a9f206
Attached To
T6831: May chose a signing key from a not inserted card over an inserted one
Event Timeline
Log In to Comment