From: Marcus Brinkmann Date: Tue, 26 Jul 2005 17:30:36 +0000 (+0000) Subject: 2005-07-26 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~302 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66830fa5e8cef7351defc7c6643354b6bc33ba6f;p=gpgme.git 2005-07-26 Marcus Brinkmann * keylist.c (gpgme_get_key): Allow key IDs. --- diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index a7ffbab..b59c04f 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/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/trunk/gpgme/keylist.c b/trunk/gpgme/keylist.c index 3d9f868..e26ddf0 100644 --- a/trunk/gpgme/keylist.c +++ b/trunk/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