Skip to content

Commit

Permalink
Remove manual dns resolution in hkp keyserver engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdafu committed Dec 14, 2017
1 parent 5977cb3 commit 4bcf535
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1,036 deletions.
19 changes: 0 additions & 19 deletions legacy/gnupg/dirmngr/ks-action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,6 @@ gpg_error_t ks_action_help(ctrl_t ctrl, const char *url) {
return err;
}

/* Resolve all host names. This is useful for looking at the status
of configured keyservers. */
gpg_error_t ks_action_resolve(ctrl_t ctrl, uri_item_t keyservers) {
gpg_error_t err = 0;
int any_server = 0;
uri_item_t uri;

for (uri = keyservers; !err && uri; uri = uri->next) {
if (uri->parsed_uri->is_http) {
any_server = 1;
err = ks_hkp_resolve(ctrl, uri->parsed_uri);
if (err) break;
}
}

if (!any_server) err = GPG_ERR_NO_KEYSERVER;
return err;
}

/* Search all configured keyservers for keys matching PATTERNS and
write the result to the provided output stream. */
gpg_error_t ks_action_search(ctrl_t ctrl, uri_item_t keyservers,
Expand Down
1 change: 0 additions & 1 deletion legacy/gnupg/dirmngr/ks-action.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <vector>

gpg_error_t ks_action_help(ctrl_t ctrl, const char *url);
gpg_error_t ks_action_resolve(ctrl_t ctrl, uri_item_t keyservers);
gpg_error_t ks_action_search(ctrl_t ctrl, uri_item_t keyservers,
const std::vector<std::string> &patterns,
estream_t outfp);
Expand Down
Loading

0 comments on commit 4bcf535

Please sign in to comment.