2006-04-19 11:26:11 +00:00
|
|
|
/* keyserver-internal.h - Keyserver internals
|
|
|
|
* Copyright (C) 2001, 2002, 2004, 2005, 2006 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
|
2007-07-04 19:49:40 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2006-04-19 11:26:11 +00:00
|
|
|
* (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/>.
|
2006-04-19 11:26:11 +00:00
|
|
|
*/
|
2002-06-29 13:46:34 +00:00
|
|
|
|
|
|
|
#ifndef _KEYSERVER_INTERNAL_H_
|
|
|
|
#define _KEYSERVER_INTERNAL_H_
|
|
|
|
|
|
|
|
#include <time.h>
|
2006-08-21 20:20:23 +00:00
|
|
|
#include "../common/keyserver.h"
|
2003-06-18 19:56:13 +00:00
|
|
|
#include "../common/iobuf.h"
|
2017-03-07 20:21:23 +09:00
|
|
|
#include "../common/types.h"
|
2002-06-29 13:46:34 +00:00
|
|
|
|
2006-04-19 11:26:11 +00:00
|
|
|
int parse_keyserver_options(char *options);
|
|
|
|
void free_keyserver_spec(struct keyserver_spec *keyserver);
|
|
|
|
struct keyserver_spec *keyserver_match(struct keyserver_spec *spec);
|
2015-01-05 15:07:23 +01:00
|
|
|
struct keyserver_spec *parse_keyserver_uri (const char *string,
|
|
|
|
int require_scheme);
|
2006-04-19 11:26:11 +00:00
|
|
|
struct keyserver_spec *parse_preferred_keyserver(PKT_signature *sig);
|
2016-01-21 11:49:27 +01:00
|
|
|
int keyserver_any_configured (ctrl_t ctrl);
|
2010-10-01 20:33:53 +00:00
|
|
|
int keyserver_export (ctrl_t ctrl, strlist_t users);
|
|
|
|
int keyserver_import (ctrl_t ctrl, strlist_t users);
|
|
|
|
int keyserver_import_fprint (ctrl_t ctrl, const byte *fprint,size_t fprint_len,
|
2016-10-27 08:44:19 +02:00
|
|
|
struct keyserver_spec *keyserver, int quick);
|
2010-10-01 20:33:53 +00:00
|
|
|
int keyserver_import_keyid (ctrl_t ctrl, u32 *keyid,
|
2016-10-27 08:44:19 +02:00
|
|
|
struct keyserver_spec *keyserver, int quick);
|
2015-10-05 17:52:28 +02:00
|
|
|
gpg_error_t keyserver_refresh (ctrl_t ctrl, strlist_t users);
|
2011-01-10 14:30:17 +01:00
|
|
|
gpg_error_t keyserver_search (ctrl_t ctrl, strlist_t tokens);
|
2010-10-01 20:33:53 +00:00
|
|
|
int keyserver_fetch (ctrl_t ctrl, strlist_t urilist);
|
2015-10-06 20:31:43 +02:00
|
|
|
int keyserver_import_cert (ctrl_t ctrl, const char *name, int dane_mode,
|
2010-10-01 20:33:53 +00:00
|
|
|
unsigned char **fpr,size_t *fpr_len);
|
2015-04-23 15:42:56 +02:00
|
|
|
gpg_error_t keyserver_import_pka (ctrl_t ctrl, const char *name,
|
|
|
|
unsigned char **fpr,size_t *fpr_len);
|
2016-10-27 08:44:19 +02:00
|
|
|
gpg_error_t keyserver_import_wkd (ctrl_t ctrl, const char *name, int quick,
|
2016-04-27 08:34:29 +02:00
|
|
|
unsigned char **fpr, size_t *fpr_len);
|
2010-10-01 20:33:53 +00:00
|
|
|
int keyserver_import_name (ctrl_t ctrl,
|
|
|
|
const char *name,unsigned char **fpr,size_t *fpr_len,
|
|
|
|
struct keyserver_spec *keyserver);
|
|
|
|
int keyserver_import_ldap (ctrl_t ctrl, const char *name,
|
|
|
|
unsigned char **fpr,size_t *fpr_len);
|
2002-06-29 13:46:34 +00:00
|
|
|
|
|
|
|
#endif /* !_KEYSERVER_INTERNAL_H_ */
|