g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
[gnupg.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 <http://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_search (ctrl_t ctrl, const char *searchstr,
25                                    gpg_error_t (*cb)(void*, int, char *),
26                                    void *cb_value);
27 gpg_error_t gpg_dirmngr_ks_get (ctrl_t ctrl, char *pattern[],
28                                 keyserver_spec_t override_keyserver,
29                                 estream_t *r_fp, char **r_source);
30 gpg_error_t gpg_dirmngr_ks_fetch (ctrl_t ctrl,
31                                   const char *url, estream_t *r_fp);
32 gpg_error_t gpg_dirmngr_ks_put (ctrl_t ctrl, void *data, size_t datalen,
33                                 kbnode_t keyblock);
34 gpg_error_t gpg_dirmngr_dns_cert (ctrl_t ctrl,
35                                   const char *name, const char *certtype,
36                                   estream_t *r_key,
37                                   unsigned char **r_fpr, size_t *r_fprlen,
38                                   char **r_url);
39 gpg_error_t gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
40                                  unsigned char **r_fpr, size_t *r_fprlen,
41                                  char **r_url);
42
43
44 #endif /*GNUPG_G10_CALL_DIRMNGR_H*/