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>
|
||||
|
||||
* getkey.c (classify_user_id): Reserve '&' for search by keygrip.
|
||||
|
||||
2006-10-19 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keygen.c (get_parameter_algo): Add special case for ELG_E which
|
||||
|
|
|
@ -578,6 +578,7 @@ seckey_available( u32 *keyid )
|
|||
* Words are delimited by white space or "()<>[]{}.@-+_,;/&!"
|
||||
* (note that you can't search for these characters). Compare
|
||||
* is not case sensitive.
|
||||
* - If the userid starts with a '&' a 40 hex digits keygrip is expected.
|
||||
*/
|
||||
|
||||
int
|
||||
|
@ -644,7 +645,7 @@ classify_user_id( const char *name, KEYDB_SEARCH_DESC *desc )
|
|||
#endif
|
||||
|
||||
case '#': /* local user id */
|
||||
return 0; /* This is now obsolete and van't not be used anymore*/
|
||||
return 0; /* This is now obsolete and can't not be used anymore*/
|
||||
|
||||
case ':': /*Unified fingerprint */
|
||||
{
|
||||
|
@ -669,6 +670,9 @@ classify_user_id( const char *name, KEYDB_SEARCH_DESC *desc )
|
|||
}
|
||||
break;
|
||||
|
||||
case '&': /* keygrip */
|
||||
return 0; /* Not yet implememted. */
|
||||
|
||||
default:
|
||||
if (s[0] == '0' && s[1] == 'x') {
|
||||
hexprefix = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue