2006-09-06 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / g10 / keyserver-internal.h
blobfe08a6b710918c1c277c9a647b41df5d14c4279c
1 /* keyserver-internal.h - Keyserver internals
2 * Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 * USA.
22 #ifndef _KEYSERVER_INTERNAL_H_
23 #define _KEYSERVER_INTERNAL_H_
25 #include <time.h>
26 #include "../common/keyserver.h"
27 #include "../common/iobuf.h"
28 #include "types.h"
30 int parse_keyserver_options(char *options);
31 void free_keyserver_spec(struct keyserver_spec *keyserver);
32 struct keyserver_spec *keyserver_match(struct keyserver_spec *spec);
33 struct keyserver_spec *parse_keyserver_uri(const char *string,
34 int require_scheme,
35 const char *configname,
36 unsigned int configlineno);
37 struct keyserver_spec *parse_preferred_keyserver(PKT_signature *sig);
38 int keyserver_export(STRLIST users);
39 int keyserver_import(STRLIST users);
40 int keyserver_import_fprint(const byte *fprint,size_t fprint_len,
41 struct keyserver_spec *keyserver);
42 int keyserver_import_keyid(u32 *keyid,struct keyserver_spec *keyserver);
43 int keyserver_refresh(STRLIST users);
44 int keyserver_search(STRLIST tokens);
45 int keyserver_fetch(STRLIST urilist);
46 int keyserver_import_cert(const char *name,
47 unsigned char **fpr,size_t *fpr_len);
48 int keyserver_import_pka(const char *name,unsigned char **fpr,size_t *fpr_len);
49 int keyserver_import_name(const char *name,unsigned char **fpr,size_t *fpr_len,
50 struct keyserver_spec *keyserver);
51 int keyserver_import_ldap(const char *name,
52 unsigned char **fpr,size_t *fpr_len);
54 #endif /* !_KEYSERVER_INTERNAL_H_ */