1 /* call-dirmngr.h - GPG operations to the Dirmngr
2 * Copyright (C) 2011 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 <https://www.gnu.org/licenses/>.
19 #ifndef GNUPG_G10_CALL_DIRMNGR_H
20 #define GNUPG_G10_CALL_DIRMNGR_H
22 void gpg_dirmngr_deinit_session_data (ctrl_t ctrl);
24 gpg_error_t gpg_dirmngr_ks_list (ctrl_t ctrl, char **r_keyserver);
25 gpg_error_t gpg_dirmngr_ks_search (ctrl_t ctrl, const char *searchstr,
26 gpg_error_t (*cb)(void*, int, char *),
28 gpg_error_t gpg_dirmngr_ks_get (ctrl_t ctrl, char *pattern[],
29 keyserver_spec_t override_keyserver, int quick,
30 estream_t *r_fp, char **r_source);
31 gpg_error_t gpg_dirmngr_ks_fetch (ctrl_t ctrl,
32 const char *url, estream_t *r_fp);
33 gpg_error_t gpg_dirmngr_ks_put (ctrl_t ctrl, void *data, size_t datalen,
35 gpg_error_t gpg_dirmngr_dns_cert (ctrl_t ctrl,
36 const char *name, const char *certtype,
38 unsigned char **r_fpr, size_t *r_fprlen,
40 gpg_error_t gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
41 unsigned char **r_fpr, size_t *r_fprlen,
43 gpg_error_t gpg_dirmngr_wkd_get (ctrl_t ctrl, const char *name, int quick,
47 #endif /*GNUPG_G10_CALL_DIRMNGR_H*/