chiark / gitweb /
dimrngr: Avoid need for hkp housekeeping.
[gnupg2.git] / dirmngr / ks-action.h
1 /* ks-action.h - OpenPGP keyserver actions definitions
2  * Copyright (C) 2011 Free Software Foundation, Inc.
3  *               2015 g10 Code GmbH
4  *
5  * This file is part of GnuPG.
6  *
7  * GnuPG is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * GnuPG is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, see <https://www.gnu.org/licenses/>.
19  */
20
21 #ifndef DIRMNGR_KS_ACTION_H
22 #define DIRMNGR_KS_ACTION_H 1
23
24 gpg_error_t ks_action_help (ctrl_t ctrl, const char *url);
25 gpg_error_t ks_action_resolve (ctrl_t ctrl, uri_item_t keyservers);
26 gpg_error_t ks_action_search (ctrl_t ctrl, uri_item_t keyservers,
27                               strlist_t patterns, estream_t outfp);
28 gpg_error_t ks_action_get (ctrl_t ctrl, uri_item_t keyservers,
29                            strlist_t patterns, estream_t outfp);
30 gpg_error_t ks_action_fetch (ctrl_t ctrl, const char *url, estream_t outfp);
31 gpg_error_t ks_action_put (ctrl_t ctrl, uri_item_t keyservers,
32                            void *data, size_t datalen,
33                            void *info, size_t infolen);
34
35
36 #endif /*DIRMNGR_KS_ACTION_H*/