diff options
| author | David Shaw <[email protected]> | 2005-01-13 23:37:26 +0000 |
|---|---|---|
| committer | David Shaw <[email protected]> | 2005-01-13 23:37:26 +0000 |
| commit | 996c82ffd6767a7594892f19247f8f3f6c1c4f37 (patch) | |
| tree | f476c8ccd780f7ea01892bdadf04bde7e308c0f5 /keyserver/ksutil.h | |
| parent | * gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_http.c, gpgkeys_ldap.c: Part 1 (diff) | |
| download | gnupg-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/ksutil.h')
| -rw-r--r-- | keyserver/ksutil.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/keyserver/ksutil.h b/keyserver/ksutil.h index 76adbcfff..135f41c89 100644 --- a/keyserver/ksutil.h +++ b/keyserver/ksutil.h @@ -1,5 +1,5 @@ /* ksutil.h - * Copyright (C) 2004 Free Software Foundation, Inc. + * Copyright (C) 2004, 2005 Free Software Foundation, Inc. * * This file is part of GNUPG. * @@ -21,6 +21,37 @@ #ifndef _KSUTIL_H_ #define _KSUTIL_H_ +#define GET 0 +#define SEND 1 +#define SEARCH 2 + +/* MAX_LINE must be 1 larger than the largest item we expect to + receive. */ +#define MAX_LINE 1080 + +#define MAX_COMMAND 6 +#define MAX_OPTION 256 +#define MAX_SCHEME 20 +#define MAX_OPAQUE 1024 +#define MAX_AUTH 128 +#define MAX_HOST 80 +#define MAX_PORT 10 +#define MAX_PATH 1024 +#define MAX_PROXY 128 +#define MAX_URL (MAX_SCHEME+1+3+MAX_AUTH+1+1+MAX_HOST+1+1+MAX_PORT+1+1+MAX_PATH+1+50) + +#define STRINGIFY(x) #x +#define MKSTRING(x) STRINGIFY(x) + +#define BEGIN "-----BEGIN PGP PUBLIC KEY BLOCK-----" +#define END "-----END PGP PUBLIC KEY BLOCK-----" + +struct keylist +{ + char str[MAX_LINE]; + struct keylist *next; +}; + /* 30 seconds seems reasonable */ #define DEFAULT_KEYSERVER_TIMEOUT 30 |
