2011-01-10 14:30:17 +01:00
|
|
|
/* call-dirmngr.h - GPG operations to the Dirmngr
|
|
|
|
* Copyright (C) 2011 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
|
|
|
* GnuPG is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GnuPG is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2011-01-10 14:30:17 +01:00
|
|
|
*/
|
|
|
|
#ifndef GNUPG_G10_CALL_DIRMNGR_H
|
2011-02-04 12:57:53 +01:00
|
|
|
#define GNUPG_G10_CALL_DIRMNGR_H
|
2011-01-10 14:30:17 +01:00
|
|
|
|
|
|
|
void gpg_dirmngr_deinit_session_data (ctrl_t ctrl);
|
|
|
|
|
2015-10-05 17:52:28 +02:00
|
|
|
gpg_error_t gpg_dirmngr_ks_list (ctrl_t ctrl, char **r_keyserver);
|
2011-01-18 12:51:16 +01:00
|
|
|
gpg_error_t gpg_dirmngr_ks_search (ctrl_t ctrl, const char *searchstr,
|
2014-03-14 16:12:54 +01:00
|
|
|
gpg_error_t (*cb)(void*, int, char *),
|
2011-01-18 12:51:16 +01:00
|
|
|
void *cb_value);
|
2014-03-14 16:12:54 +01:00
|
|
|
gpg_error_t gpg_dirmngr_ks_get (ctrl_t ctrl, char *pattern[],
|
2016-10-27 08:44:19 +02:00
|
|
|
keyserver_spec_t override_keyserver, int quick,
|
2014-03-14 16:12:54 +01:00
|
|
|
estream_t *r_fp, char **r_source);
|
2011-03-08 12:23:59 +01:00
|
|
|
gpg_error_t gpg_dirmngr_ks_fetch (ctrl_t ctrl,
|
|
|
|
const char *url, estream_t *r_fp);
|
2011-01-20 14:12:53 +01:00
|
|
|
gpg_error_t gpg_dirmngr_ks_put (ctrl_t ctrl, void *data, size_t datalen,
|
|
|
|
kbnode_t keyblock);
|
2015-04-23 15:42:56 +02:00
|
|
|
gpg_error_t gpg_dirmngr_dns_cert (ctrl_t ctrl,
|
|
|
|
const char *name, const char *certtype,
|
|
|
|
estream_t *r_key,
|
|
|
|
unsigned char **r_fpr, size_t *r_fprlen,
|
|
|
|
char **r_url);
|
|
|
|
gpg_error_t gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
|
|
|
|
unsigned char **r_fpr, size_t *r_fprlen,
|
|
|
|
char **r_url);
|
2016-10-27 08:44:19 +02:00
|
|
|
gpg_error_t gpg_dirmngr_wkd_get (ctrl_t ctrl, const char *name, int quick,
|
2017-07-24 20:05:28 +02:00
|
|
|
estream_t *r_key, char **r_url);
|
2011-01-10 14:30:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif /*GNUPG_G10_CALL_DIRMNGR_H*/
|