2006-08-16 12:47:53 +02:00
|
|
|
/* keyserver.h - Public definitions for gpg keyserver helpers.
|
2011-01-10 14:30:17 +01:00
|
|
|
* Copyright (C) 2001, 2002, 2011 Free Software Foundation, Inc.
|
2002-06-29 15:31:13 +02:00
|
|
|
*
|
2006-04-19 13:26:11 +02:00
|
|
|
* This file is part of GnuPG.
|
2002-06-29 15:31:13 +02:00
|
|
|
*
|
2015-12-14 09:59:43 +01:00
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of either
|
2002-06-29 15:31:13 +02:00
|
|
|
*
|
2015-12-14 09:59:43 +01:00
|
|
|
* - the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or
|
|
|
|
*
|
|
|
|
* - the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or both in parallel, as here.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
2002-06-29 15:31:13 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2002-06-29 15:31:13 +02:00
|
|
|
*/
|
|
|
|
|
2006-08-16 12:47:53 +02:00
|
|
|
#ifndef GNUPG_COMMON_KEYSERVER_H
|
|
|
|
#define GNUPG_COMMON_KEYSERVER_H
|
2002-06-29 15:31:13 +02:00
|
|
|
|
2002-10-14 20:52:32 +02:00
|
|
|
#define KEYSERVER_PROTO_VERSION 1
|
|
|
|
|
2002-09-24 20:29:57 +02:00
|
|
|
/* These are usable for return codes for the gpgkeys_ process, and
|
|
|
|
also KEY FAILED codes. */
|
|
|
|
#define KEYSERVER_OK 0 /* not an error */
|
|
|
|
#define KEYSERVER_INTERNAL_ERROR 1 /* gpgkeys_ internal error */
|
|
|
|
#define KEYSERVER_NOT_SUPPORTED 2 /* operation not supported */
|
|
|
|
#define KEYSERVER_VERSION_ERROR 3 /* VERSION mismatch */
|
|
|
|
#define KEYSERVER_GENERAL_ERROR 4 /* keyserver internal error */
|
|
|
|
#define KEYSERVER_NO_MEMORY 5 /* out of memory */
|
|
|
|
#define KEYSERVER_KEY_NOT_FOUND 6 /* key not found */
|
|
|
|
#define KEYSERVER_KEY_EXISTS 7 /* key already exists */
|
|
|
|
#define KEYSERVER_KEY_INCOMPLETE 8 /* key incomplete (EOF) */
|
2002-10-09 03:53:42 +02:00
|
|
|
#define KEYSERVER_UNREACHABLE 9 /* unable to contact keyserver */
|
2002-09-24 20:29:57 +02:00
|
|
|
|
|
|
|
/* Must be 127 due to shell internal magic. */
|
2002-06-29 15:31:13 +02:00
|
|
|
#define KEYSERVER_SCHEME_NOT_FOUND 127
|
|
|
|
|
More cleanup of "allow to".
* README, agent/command.c, agent/keyformat.txt, common/i18n.c,
common/iobuf.c, common/keyserver.h, dirmngr/cdblib.c,
dirmngr/ldap-wrapper.c, doc/DETAILS, doc/TRANSLATE,
doc/announce-2.1.txt, doc/gpg.texi, doc/gpgsm.texi,
doc/scdaemon.texi, doc/tools.texi, doc/whats-new-in-2.1.txt,
g10/export.c, g10/getkey.c, g10/import.c, g10/keyedit.c, m4/ksba.m4,
m4/libgcrypt.m4, m4/ntbtls.m4, po/ca.po, po/cs.po, po/da.po,
po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po,
po/fr.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po,
po/nb.po, po/pl.po, po/pt.po, po/ro.po, po/ru.po, po/sk.po,
po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po,
scd/app-p15.c, scd/ccid-driver.c, scd/command.c, sm/gpgsm.c,
sm/sign.c, tools/gpgconf-comp.c, tools/gpgtar.h: replace "Allow to"
with clearer text.
In standard English, the normal construction is "${XXX} allows ${YYY}
to" -- that is, the subject (${XXX}) of the sentence is allowing the
object (${YYY}) to do something. When the object is missing, the
phrasing sounds awkward, even if the object is implied by context.
There's almost always a better construction that isn't as awkward.
These changes should make the language a bit clearer.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2016-08-02 04:19:17 +02:00
|
|
|
/* Object to hold information pertaining to a keyserver; it also
|
|
|
|
allows building a list of keyservers. Note that g10/options.h has
|
2011-01-10 14:30:17 +01:00
|
|
|
a typedef for this. FIXME: We should make use of the
|
|
|
|
parse_uri_t. */
|
|
|
|
struct keyserver_spec
|
|
|
|
{
|
|
|
|
struct keyserver_spec *next;
|
|
|
|
char *uri;
|
|
|
|
char *scheme;
|
|
|
|
char *auth;
|
|
|
|
char *host;
|
|
|
|
char *port;
|
|
|
|
char *path;
|
|
|
|
char *opaque;
|
|
|
|
strlist_t options;
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
unsigned int direct_uri:1;
|
|
|
|
} flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-08-16 12:47:53 +02:00
|
|
|
#endif /*GNUPG_COMMON_KEYSERVER_H*/
|