1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Add framework to print keyserver engine information

This commit is contained in:
Werner Koch 2011-02-09 17:48:00 +01:00
parent f02d972aec
commit 1cdcab6892
10 changed files with 179 additions and 5 deletions

View file

@ -31,6 +31,26 @@
/* How many redirections do we allow. */
#define MAX_REDIRECTS 2
/* Print a help output for the schemata supported by this module. */
gpg_error_t
ks_http_help (ctrl_t ctrl, parsed_uri_t uri)
{
const char const data[] =
"Handler for HTTP URLs:\n"
" http://\n"
"Supported methods: fetch\n";
gpg_error_t err;
if (!uri)
err = ks_print_help (ctrl, " http");
else if (uri->is_http)
err = ks_print_help (ctrl, data);
else
err = 0;
return err;
}
/* Get the key from URL which is expected to specify a http style
scheme. On success R_FP has an open stream to read the data. */