mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Allow to select X.509 certificates using the keygrip.
This commit is contained in:
parent
11935a4c18
commit
58785c880d
13 changed files with 251 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-10-20 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keydb.c (classify_user_id): Parse keygrip for the '&' identifier.
|
||||
|
||||
2006-10-18 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keylist.c (list_cert_raw): Also test for GPG_ERR_NO_VALUE when
|
||||
|
|
10
sm/keydb.c
10
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')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue