aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_ldap.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-03-22 23:41:08 +0000
committerDavid Shaw <[email protected]>2005-03-22 23:41:08 +0000
commit1517f0e945d98966316219fb5601c6a8cce69a84 (patch)
treed4e583f62c10fce8e021228d56f30426871499c0 /keyserver/gpgkeys_ldap.c
parent* gpgv.c: Stubs for tty_enable_completion() & tty_disable_completion(). (diff)
downloadgnupg-1517f0e945d98966316219fb5601c6a8cce69a84.tar.gz
gnupg-1517f0e945d98966316219fb5601c6a8cce69a84.zip
* 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.
Diffstat (limited to 'keyserver/gpgkeys_ldap.c')
-rw-r--r--keyserver/gpgkeys_ldap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index f96555edd..fd99ae197 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -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)