summaryrefslogtreecommitdiffstats
path: root/net/base/dnssec_chain_verifier.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 20:13:23 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-09 20:13:23 +0000
commitb40f05a835ecd5ff30e7f87a89837eee059bfadc (patch)
tree6099b52325283e33e1a79892b9646d12cb0da7f5 /net/base/dnssec_chain_verifier.h
parentcf59e2dae675b777ce193268ec4040de63e4b4f1 (diff)
downloadchromium_src-b40f05a835ecd5ff30e7f87a89837eee059bfadc.zip
chromium_src-b40f05a835ecd5ff30e7f87a89837eee059bfadc.tar.gz
chromium_src-b40f05a835ecd5ff30e7f87a89837eee059bfadc.tar.bz2
net: add DNSSEC tool and CNAME support.
This change adds support for DNSSEC chains with CNAMEs. I.e. it's not possible to prove records about $domain where $domain is a CNAME. It also adds a tiny, standalone tool to run the verification code from the command line. BUG=none TEST=net_unittests http://codereview.chromium.org/3301015/show git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/dnssec_chain_verifier.h')
-rw-r--r--net/base/dnssec_chain_verifier.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/base/dnssec_chain_verifier.h b/net/base/dnssec_chain_verifier.h
index 096dea1..d896c6c 100644
--- a/net/base/dnssec_chain_verifier.h
+++ b/net/base/dnssec_chain_verifier.h
@@ -96,14 +96,17 @@ class DNSSECChainVerifier {
Error LeaveZone(base::StringPiece* next_name);
Error ReadDSSet(std::vector<base::StringPiece>*,
const base::StringPiece& next_name);
- Error ReadCERTs(std::vector<base::StringPiece>*);
-
+ Error ReadGenericRRs(std::vector<base::StringPiece>*);
+ Error ReadCNAME(std::vector<base::StringPiece>*);
Zone* current_zone_;
- const std::string target_;
+ std::string target_;
base::StringPiece chain_;
bool ignore_timestamps_;
bool valid_;
+ // already_entered_zone_ is set to true when we unwind a Zone chain and start
+ // off from a point where we have already entered a zone.
+ bool already_entered_zone_;
uint16 rrtype_;
std::vector<base::StringPiece> rrdatas_;
// A list of pointers which need to be free()ed on destruction.