1 /* ks-action.h - OpenPGP keyserver actions definitions
2 * Copyright (C) 2011 Free Software Foundation, Inc.
5 * This file is part of GnuPG.
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.
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.
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/>.
21 #ifndef DIRMNGR_KS_ACTION_H
22 #define DIRMNGR_KS_ACTION_H 1
24 gpg_error_t ks_action_parse_uri (const char *uri, uri_item_t *r_parseduri);
25 gpg_error_t ks_action_help (ctrl_t ctrl, const char *url);
26 gpg_error_t ks_action_resolve (ctrl_t ctrl, uri_item_t keyservers);
27 gpg_error_t ks_action_search (ctrl_t ctrl, uri_item_t keyservers,
28 strlist_t patterns, estream_t outfp);
29 gpg_error_t ks_action_get (ctrl_t ctrl, uri_item_t keyservers,
30 strlist_t patterns, unsigned int ks_get_flags,
31 gnupg_isotime_t newer, estream_t outfp);
32 gpg_error_t ks_action_fetch (ctrl_t ctrl, const char *url, estream_t outfp);
33 gpg_error_t ks_action_put (ctrl_t ctrl, uri_item_t keyservers,
34 void *data, size_t datalen,
35 void *info, size_t infolen);
36 gpg_error_t ks_action_query (ctrl_t ctrl, const char *ldapserver,
37 unsigned int ks_get_flags,
38 const char *filter, char **attr,
39 gnupg_isotime_t newer, estream_t outfp);
42 #endif /*DIRMNGR_KS_ACTION_H*/