diff options
author | Werner Koch <[email protected]> | 2006-10-20 11:38:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-10-20 11:38:48 +0000 |
commit | 58785c880d4540e0f75738b3b10a8a03c35d5ee1 (patch) | |
tree | 3b1a8732c3d3f8132bfaab9447a9252d4235b852 /sm/keydb.c | |
parent | * gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTML (diff) | |
download | gnupg-58785c880d4540e0f75738b3b10a8a03c35d5ee1.tar.gz gnupg-58785c880d4540e0f75738b3b10a8a03c35d5ee1.zip |
Allow to select X.509 certificates using the keygrip.
Diffstat (limited to 'sm/keydb.c')
-rw-r--r-- | sm/keydb.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sm/keydb.c b/sm/keydb.c index da2ec4ac5..ecb9ffaf0 100644 --- a/sm/keydb.c +++ b/sm/keydb.c @@ -1140,7 +1140,15 @@ classify_user_id (const char *name, mode = KEYDB_SEARCH_MODE_FPR; } break; - + + case '&': /* Keygrip*/ + { + if (hex2bin (s+1, desc->u.grip, 20) < 0) + return 0; /* Invalid. */ + mode = KEYDB_SEARCH_MODE_KEYGRIP; + } + break; + default: if (s[0] == '0' && s[1] == 'x') { |