diff options
author | Werner Koch <[email protected]> | 2011-02-09 16:48:00 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-02-09 17:20:05 +0000 |
commit | 1cdcab68924a58623c3ea75eb47544973f24420c (patch) | |
tree | 96b0e3e873e2510d6b958ed6d3c42e8c4f61d6d5 /dirmngr/ks-engine-http.c | |
parent | Support key fetching using HTTP. (diff) | |
download | gnupg-1cdcab68924a58623c3ea75eb47544973f24420c.tar.gz gnupg-1cdcab68924a58623c3ea75eb47544973f24420c.zip |
Add framework to print keyserver engine information
Diffstat (limited to 'dirmngr/ks-engine-http.c')
-rw-r--r-- | dirmngr/ks-engine-http.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dirmngr/ks-engine-http.c b/dirmngr/ks-engine-http.c index 304e793f7..2ce1b19a1 100644 --- a/dirmngr/ks-engine-http.c +++ b/dirmngr/ks-engine-http.c @@ -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. */ |