chiark / gitweb /
gpg agent lockup fix: Interrupt main loop when active_connections_value==0
[gnupg2.git] / g10 / call-dirmngr.h
1 /* call-dirmngr.h - GPG operations to the Dirmngr
2  * Copyright (C) 2011 Free Software Foundation, Inc.
3  *
4  * This file is part of GnuPG.
5  *
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.
10  *
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.
15  *
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/>.
18  */
19 #ifndef GNUPG_G10_CALL_DIRMNGR_H
20 #define GNUPG_G10_CALL_DIRMNGR_H
21
22 void gpg_dirmngr_deinit_session_data (ctrl_t ctrl);
23
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 *),
27                                    void *cb_value);
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,
34                                 kbnode_t keyblock);
35 gpg_error_t gpg_dirmngr_dns_cert (ctrl_t ctrl,
36                                   const char *name, const char *certtype,
37                                   estream_t *r_key,
38                                   unsigned char **r_fpr, size_t *r_fprlen,
39                                   char **r_url);
40 gpg_error_t gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
41                                  unsigned char **r_fpr, size_t *r_fprlen,
42                                  char **r_url);
43 gpg_error_t gpg_dirmngr_wkd_get (ctrl_t ctrl, const char *name, int quick,
44                                  estream_t *r_key);
45
46
47 #endif /*GNUPG_G10_CALL_DIRMNGR_H*/