mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* gpgkeys_ldap.c, ksutil.h, ksutil.c (print_nocr): Moved from
gpgkeys_ldap.c. Print a string, but strip out any CRs. * gpgkeys_finger.c (get_key), gpgkeys_hkp.c (get_key), gpgkeys_http.c (get_key): Use it here when outputting key material to canonicalize line endings.
This commit is contained in:
parent
57b9ba5e16
commit
1517f0e945
7 changed files with 34 additions and 17 deletions
|
@ -953,17 +953,6 @@ build_info(const char *certid,LDAPMessage *each)
|
|||
fprintf(output,"INFO %s END\n",certid);
|
||||
}
|
||||
|
||||
static void
|
||||
print_nocr(FILE *stream,const char *str)
|
||||
{
|
||||
while(*str)
|
||||
{
|
||||
if(*str!='\r')
|
||||
fputc(*str,stream);
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
||||
/* Note that key-not-found is not a fatal error */
|
||||
static int
|
||||
get_key(char *getkey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue