aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver/gpgkeys_http.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_http.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 '')
-rw-r--r--keyserver/gpgkeys_http.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/keyserver/gpgkeys_http.c b/keyserver/gpgkeys_http.c
index 606e26fe5..b89f5d3f8 100644
--- a/keyserver/gpgkeys_http.c
+++ b/keyserver/gpgkeys_http.c
@@ -1,5 +1,5 @@
/* gpgkeys_http.c - fetch a key via HTTP
- * Copyright (C) 2004 Free Software Foundation, Inc.
+ * Copyright (C) 2004, 2005 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -36,27 +36,11 @@
extern char *optarg;
extern int optind;
-#define GET 0
-#define MAX_LINE 80
-#define MAX_AUTH 128
-#define MAX_HOST 80
-#define MAX_PROXY 80
-#define MAX_PORT 10
-#define MAX_PATH 1024
-#define MAX_COMMAND 7
-#define MAX_OPTION 256
-
-#define STRINGIFY(x) #x
-#define MKSTRING(x) STRINGIFY(x)
-
static int verbose=0;
static unsigned int http_flags=0;
static char auth[MAX_AUTH+1]={'\0'},host[MAX_HOST+1]={'\0'},proxy[MAX_PROXY+1]={'\0'},port[MAX_PORT+1]={'\0'},path[MAX_PATH+1]={'\0'};
static FILE *input=NULL,*output=NULL,*console=NULL;
-#define BEGIN "-----BEGIN PGP PUBLIC KEY BLOCK-----"
-#define END "-----END PGP PUBLIC KEY BLOCK-----"
-
#ifdef __riscos__
#define HTTP_PROXY_ENV "GnuPG$HttpProxy"
#else