aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_ldap.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-01-13 23:37:26 +0000
committerDavid Shaw <[email protected]>2005-01-13 23:37:26 +0000
commit996c82ffd6767a7594892f19247f8f3f6c1c4f37 (patch)
treef476c8ccd780f7ea01892bdadf04bde7e308c0f5 /keyserver/gpgkeys_ldap.c
parent* gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1 (diff)
downloadgnupg-996c82ffd6767a7594892f19247f8f3f6c1c4f37.tar.gz
gnupg-996c82ffd6767a7594892f19247f8f3f6c1c4f37.zip
* ksutil.h, gpgkeys_curl.c, gpgkeys_hkp.c, gpgkeys_ldap.c,
gpgkeys_finger.c, gpgkeys_http.c: Part 2 of the cleanup. Move all the various defines to ksutil.h.
Diffstat (limited to 'keyserver/gpgkeys_ldap.c')
-rw-r--r--keyserver/gpgkeys_ldap.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index 8c1335d6d..2ea1167c8 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -1,5 +1,5 @@
/* gpgkeys_ldap.c - talk to a LDAP keyserver
- * Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -47,19 +47,6 @@
extern char *optarg;
extern int optind;
-#define GET 0
-#define SEND 1
-#define SEARCH 2
-#define MAX_LINE 255
-#define MAX_HOST 80
-#define MAX_SCHEME 20
-#define MAX_PORT 10
-#define MAX_OPTION 255
-#define MAX_COMMAND 7
-
-#define STRINGIFY(x) #x
-#define MKSTRING(x) STRINGIFY(x)
-
static int verbose=0,include_disabled=0,include_revoked=0,include_subkeys=0;
static int real_ldap=0;
static char *basekeyspacedn=NULL;
@@ -73,12 +60,6 @@ static LDAP *ldap=NULL;
time_t timegm(struct tm *tm);
#endif
-struct keylist
-{
- char str[MAX_LINE];
- struct keylist *next;
-};
-
static int
ldap_err_to_gpg_err(int err)
{