1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* gpgkeys_hkp.c (get_key, parse_hkp_index): Bring over latest code from

g10/hkp.c.

* gpgkeys_ldap.c (get_key): Fix cosmetic URL display problem (extra ":" at
the end).
This commit is contained in:
David Shaw 2002-08-19 21:14:57 +00:00
parent 899343542d
commit 0d8006450a
3 changed files with 20 additions and 12 deletions

View file

@ -42,8 +42,8 @@
int verbose=0,include_disabled=0,include_revoked=0,include_subkeys=0;
char *basekeyspacedn=NULL;
char host[80];
char portstr[10];
char host[80]={'\0'};
char portstr[10]={'\0'};
char *pgpkeystr="pgpKey";
FILE *input=NULL,*output=NULL,*console=NULL;
LDAP *ldap=NULL;
@ -242,7 +242,7 @@ int get_key(char *getkey)
if(verbose)
fprintf(console,"gpgkeys: requesting key 0x%s from ldap://%s%s%s\n",
getkey,host,portstr?":":"",portstr?portstr:"");
getkey,host,portstr[0]?":":"",portstr[0]?portstr:"");
err=ldap_search_s(ldap,basekeyspacedn,
LDAP_SCOPE_SUBTREE,search,attrs,0,&res);