diff options
author | Lee Clagett <code@leeclagett.com> | 2020-12-06 16:59:08 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-10-07 15:43:31 +0000 |
commit | 386ef03be3c1e8b183a70b2fc7048fd6e8ca2f79 (patch) | |
tree | 04389a43b151da780af6685ab4d3894fdf060122 /src/net/error.cpp | |
parent | Merge pull request #7068 (diff) | |
download | monero-386ef03be3c1e8b183a70b2fc7048fd6e8ca2f79.tar.xz |
Add TLSA support to DNSSEC fetching
Diffstat (limited to 'src/net/error.cpp')
-rw-r--r-- | src/net/error.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/error.cpp b/src/net/error.cpp index 037f44d52..d2e713bc5 100644 --- a/src/net/error.cpp +++ b/src/net/error.cpp @@ -47,12 +47,18 @@ namespace { switch (net::error(value)) { + case net::error::bogus_dnssec: + return "Invalid response signature from DNSSEC enabled domain"; + case net::error::dns_query_failure: + return "Failed to retrieve desired DNS record"; case net::error::expected_tld: return "Expected top-level domain"; case net::error::invalid_host: return "Host value is not valid"; case net::error::invalid_i2p_address: return "Invalid I2P address"; + case net::error::invalid_mask: + return "CIDR netmask outside of 0-32 range"; case net::error::invalid_port: return "Invalid port value (expected 0-65535)"; case net::error::invalid_tor_address: @@ -71,6 +77,7 @@ namespace switch (net::error(value)) { case net::error::invalid_port: + case net::error::invalid_mask: return std::errc::result_out_of_range; case net::error::expected_tld: case net::error::invalid_tor_address: |