2005-07-26 Marcus Brinkmann <marcus@g10code.de>
* keylist.c (gpgme_get_key): Allow key IDs.
This commit is contained in:
parent
110dced324
commit
6f3247c583
@ -1,3 +1,7 @@
|
|||||||
|
2005-07-26 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* keylist.c (gpgme_get_key): Allow key IDs.
|
||||||
|
|
||||||
2005-06-20 Marcus Brinkmann <marcus@g10code.de>
|
2005-06-20 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* gpgme.m4: Only call GPGME_CONFIG if found.
|
* gpgme.m4: Only call GPGME_CONFIG if found.
|
||||||
|
@ -842,7 +842,7 @@ gpgme_get_key (gpgme_ctx_t ctx, const char *fpr, gpgme_key_t *r_key,
|
|||||||
if (!ctx || !r_key || !fpr)
|
if (!ctx || !r_key || !fpr)
|
||||||
return gpg_error (GPG_ERR_INV_VALUE);
|
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);
|
return gpg_error (GPG_ERR_INV_VALUE);
|
||||||
|
|
||||||
/* FIXME: We use our own context because we have to avoid the user's
|
/* FIXME: We use our own context because we have to avoid the user's
|
||||||
|
Loading…
Reference in New Issue
Block a user