2006-04-19 13:26:11 +02: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 21:49:40 +02:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2006-04-19 13:26:11 +02: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 13:26:11 +02:00
|
|
|
*/
|
2002-06-29 15:46:34 +02:00
|
|
|
|
|
|
|
#ifndef _KEYSERVER_INTERNAL_H_
|
|
|
|
#define _KEYSERVER_INTERNAL_H_
|
|
|
|
|
|
|
|
#include <time.h>
|
2003-06-18 21:56:13 +02:00
|
|
|
#include "../common/iobuf.h"
|
2017-03-07 12:21:23 +01:00
|
|
|
#include "../common/types.h"
|
2002-06-29 15:46:34 +02:00
|
|
|
|
2021-04-16 20:21:23 +02:00
|
|
|
/* Flags for the keyserver import functions. */
|
|
|
|
#define KEYSERVER_IMPORT_FLAG_QUICK 1
|
|
|
|
#define KEYSERVER_IMPORT_FLAG_LDAP 2
|
|
|
|
|
2006-04-19 13:26:11 +02: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 13:26:11 +02: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 22:33:53 +02:00
|
|
|
int keyserver_export (ctrl_t ctrl, strlist_t users);
|
|
|
|
int keyserver_import (ctrl_t ctrl, strlist_t users);
|
2024-06-04 15:25:51 +02:00
|
|
|
int keyserver_import_fpr (ctrl_t ctrl, const byte *fprint,size_t fprint_len,
|
|
|
|
struct keyserver_spec *keyserver,
|
|
|
|
unsigned int flags);
|
|
|
|
int keyserver_import_fpr_ntds (ctrl_t ctrl,
|
|
|
|
const byte *fprint, size_t fprint_len);
|
2010-10-01 22:33:53 +02:00
|
|
|
int keyserver_import_keyid (ctrl_t ctrl, u32 *keyid,
|
2021-04-16 20:21:23 +02:00
|
|
|
struct keyserver_spec *keyserver,
|
|
|
|
unsigned int flags);
|
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);
|
2017-07-13 18:22:36 +02:00
|
|
|
int keyserver_fetch (ctrl_t ctrl, strlist_t urilist, int origin);
|
2015-10-06 20:31:43 +02:00
|
|
|
int keyserver_import_cert (ctrl_t ctrl, const char *name, int dane_mode,
|
2010-10-01 22:33:53 +02:00
|
|
|
unsigned char **fpr,size_t *fpr_len);
|
2021-04-16 20:21:23 +02:00
|
|
|
gpg_error_t keyserver_import_wkd (ctrl_t ctrl, const char *name,
|
|
|
|
unsigned int flags,
|
2016-04-27 08:34:29 +02:00
|
|
|
unsigned char **fpr, size_t *fpr_len);
|
2020-12-17 18:18:52 +01:00
|
|
|
int keyserver_import_ntds (ctrl_t ctrl, const char *name,
|
|
|
|
unsigned char **fpr,size_t *fpr_len);
|
2024-06-04 18:02:02 +02:00
|
|
|
gpg_error_t keyserver_import_mbox (ctrl_t ctrl, const char *mbox,
|
|
|
|
unsigned char **fpr,size_t *fpr_len,
|
|
|
|
struct keyserver_spec *keyserver,
|
|
|
|
unsigned int flags);
|
2002-06-29 15:46:34 +02:00
|
|
|
|
|
|
|
#endif /* !_KEYSERVER_INTERNAL_H_ */
|