Fix bug#1011.
[gnupg.git] / g10 / keyserver-internal.h
blob9f05c18800fa487628610c870662c3ff79b91eba
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 3 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, see <http://www.gnu.org/licenses/>.
20 #ifndef _KEYSERVER_INTERNAL_H_
21 #define _KEYSERVER_INTERNAL_H_
23 #include <time.h>
24 #include "../common/keyserver.h"
25 #include "../common/iobuf.h"
26 #include "types.h"
28 int parse_keyserver_options(char *options);
29 void free_keyserver_spec(struct keyserver_spec *keyserver);
30 struct keyserver_spec *keyserver_match(struct keyserver_spec *spec);
31 struct keyserver_spec *parse_keyserver_uri(const char *string,
32 int require_scheme,
33 const char *configname,
34 unsigned int configlineno);
35 struct keyserver_spec *parse_preferred_keyserver(PKT_signature *sig);
36 int keyserver_export(strlist_t users);
37 int keyserver_import(strlist_t users);
38 int keyserver_import_fprint(const byte *fprint,size_t fprint_len,
39 struct keyserver_spec *keyserver);
40 int keyserver_import_keyid(u32 *keyid,struct keyserver_spec *keyserver);
41 int keyserver_refresh(strlist_t users);
42 int keyserver_search(strlist_t tokens);
43 int keyserver_fetch(strlist_t urilist);
44 int keyserver_import_cert(const char *name,
45 unsigned char **fpr,size_t *fpr_len);
46 int keyserver_import_pka(const char *name,unsigned char **fpr,size_t *fpr_len);
47 int keyserver_import_name(const char *name,unsigned char **fpr,size_t *fpr_len,
48 struct keyserver_spec *keyserver);
49 int keyserver_import_ldap(const char *name,
50 unsigned char **fpr,size_t *fpr_len);
52 #endif /* !_KEYSERVER_INTERNAL_H_ */