Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: net/base/dnssec_keyset.h

Issue 3412016: FBTF: Move a bunch of code to the headers and remove includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase + fixed windows issues locally Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/dnssec_chain_verifier.cc ('k') | net/base/dnssec_keyset.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_DNSSEC_KEYSET_H_ 5 #ifndef NET_BASE_DNSSEC_KEYSET_H_
6 #define NET_BASE_DNSSEC_KEYSET_H_ 6 #define NET_BASE_DNSSEC_KEYSET_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 // DNSSECKeySet function wraps base/crypto/signature_verifier.h to accept 15 // DNSSECKeySet function wraps base/crypto/signature_verifier.h to accept
16 // DNSSEC encodings. (See RFC 4043) 16 // DNSSEC encodings. (See RFC 4043)
17 class DNSSECKeySet { 17 class DNSSECKeySet {
18 public: 18 public:
19 DNSSECKeySet(); 19 DNSSECKeySet();
20 ~DNSSECKeySet();
20 21
21 // AddKey adds a key to the trusted set. 22 // AddKey adds a key to the trusted set.
22 // dnskey: the RRDATA of a DNSKEY. 23 // dnskey: the RRDATA of a DNSKEY.
23 bool AddKey(const base::StringPiece& dnskey); 24 bool AddKey(const base::StringPiece& dnskey);
24 25
25 // CheckSignature checks the DNSSEC signature on set of resource records. 26 // CheckSignature checks the DNSSEC signature on set of resource records.
26 // name: the domain that the records are from 27 // name: the domain that the records are from
27 // zone: the signing zone 28 // zone: the signing zone
28 // signature: the RRSIG signature, not include the signing zone. 29 // signature: the RRSIG signature, not include the signing zone.
29 // rrtype: the type of the resource records 30 // rrtype: the type of the resource records
(...skipping 22 matching lines...) Expand all
52 std::string ASN1WrapDNSKEY(const base::StringPiece& dnskey); 53 std::string ASN1WrapDNSKEY(const base::StringPiece& dnskey);
53 54
54 bool ignore_timestamps_; 55 bool ignore_timestamps_;
55 std::vector<uint16> keyids_; 56 std::vector<uint16> keyids_;
56 std::vector<std::string> public_keys_; 57 std::vector<std::string> public_keys_;
57 }; 58 };
58 59
59 } // namespace net 60 } // namespace net
60 61
61 #endif // NET_BASE_DNSSEC_KEYSET_H_ 62 #endif // NET_BASE_DNSSEC_KEYSET_H_
OLDNEW
« no previous file with comments | « net/base/dnssec_chain_verifier.cc ('k') | net/base/dnssec_keyset.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698