From 400f099bfcccada2581323898be64131f3834b5b Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 26 Jul 2005 17:32:16 +0000 Subject: [PATCH] 2005-07-26 Marcus Brinkmann * keylist.c (gpgme_get_key): Allow key IDs. --- branches/gpgme-1-0-branch/gpgme/ChangeLog | 4 ++++ branches/gpgme-1-0-branch/gpgme/keylist.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/branches/gpgme-1-0-branch/gpgme/ChangeLog b/branches/gpgme-1-0-branch/gpgme/ChangeLog index 7fd5e0e..4c0eee7 100644 --- a/branches/gpgme-1-0-branch/gpgme/ChangeLog +++ b/branches/gpgme-1-0-branch/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2005-07-26 Marcus Brinkmann + + * keylist.c (gpgme_get_key): Allow key IDs. + 2005-06-20 Marcus Brinkmann * gpgme.m4: Only call GPGME_CONFIG if found. diff --git a/branches/gpgme-1-0-branch/gpgme/keylist.c b/branches/gpgme-1-0-branch/gpgme/keylist.c index 3d9f868..e26ddf0 100644 --- a/branches/gpgme-1-0-branch/gpgme/keylist.c +++ b/branches/gpgme-1-0-branch/gpgme/keylist.c @@ -842,7 +842,7 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key, if (!ctx || !r_key || !fpr) return gpg_error (GPG_ERR_INV_VALUE); - if (strlen (fpr) < 16) /* We have at least a key ID. */ + if (strlen (fpr) < 8) /* We have at least a key ID. */ return gpg_error (GPG_ERR_INV_VALUE); /* FIXME: We use our own context because we have to avoid the user's -- 2.26.2