aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-10-20 11:38:48 +0000
committerWerner Koch <[email protected]>2006-10-20 11:38:48 +0000
commit58785c880d4540e0f75738b3b10a8a03c35d5ee1 (patch)
tree3b1a8732c3d3f8132bfaab9447a9252d4235b852 /g10/getkey.c
parent* gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTML (diff)
downloadgnupg-58785c880d4540e0f75738b3b10a8a03c35d5ee1.tar.gz
gnupg-58785c880d4540e0f75738b3b10a8a03c35d5ee1.zip
Allow to select X.509 certificates using the keygrip.
Diffstat (limited to 'g10/getkey.c')
-rw-r--r--g10/getkey.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 002197071..d526398c6 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -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;