diff options
author | Marcus Brinkmann <[email protected]> | 2005-07-26 17:30:36 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2005-07-26 17:30:36 +0000 |
commit | b19c847b02c893199e12085ab6a13a3cf2ed9a0d (patch) | |
tree | aa930724fe080a1678102f5e641948fe04e4ebcc | |
parent | 2005-06-20 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-b19c847b02c893199e12085ab6a13a3cf2ed9a0d.tar.gz gpgme-b19c847b02c893199e12085ab6a13a3cf2ed9a0d.zip |
2005-07-26 Marcus Brinkmann <[email protected]>
* keylist.c (gpgme_get_key): Allow key IDs.
Diffstat (limited to '')
-rw-r--r-- | gpgme/ChangeLog | 4 | ||||
-rw-r--r-- | gpgme/keylist.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index a7ffbabf..b59c04fd 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2005-07-26 Marcus Brinkmann <[email protected]> + + * keylist.c (gpgme_get_key): Allow key IDs. + 2005-06-20 Marcus Brinkmann <[email protected]> * gpgme.m4: Only call GPGME_CONFIG if found. diff --git a/gpgme/keylist.c b/gpgme/keylist.c index 3d9f868c..e26ddf09 100644 --- a/gpgme/keylist.c +++ b/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 |