mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
LDAP keyservers do not support v3 fingerprints, so error out if someone
tries. Actually, they don't support any fingerprints, but at least we can calculate a keyid from a v4 fingerprint.
This commit is contained in:
parent
070f1cba5d
commit
3720c5b008
@ -1,3 +1,10 @@
|
||||
2002-02-25 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_ldap (get_key): LDAP keyservers do not support v3
|
||||
fingerprints, so error out if someone tries. Actually, they don't
|
||||
support any fingerprints, but at least we can calculate a keyid
|
||||
from a v4 fingerprint.
|
||||
|
||||
2002-02-23 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* gpgkeys_ldap: Clarify the notion of a partial failure. This is
|
||||
|
@ -177,6 +177,15 @@ int get_key(char *getkey)
|
||||
if(strncmp(getkey,"0x",2)==0)
|
||||
getkey+=2;
|
||||
|
||||
if(strlen(getkey)==32)
|
||||
{
|
||||
fprintf(console,
|
||||
"gpgkeys: LDAP keyservers do not support v3 fingerprints\n");
|
||||
fprintf(output,"KEY 0x%s BEGIN\n",getkey);
|
||||
fprintf(output,"KEY 0x%s FAILED\n",getkey);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(strlen(getkey)>16)
|
||||
{
|
||||
char *offset=&getkey[strlen(getkey)-16];
|
||||
|
Loading…
Reference in New Issue
Block a user