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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "net/base/net_api.h" 12 #include "net/base/net_export.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // DNSSECKeySet function wraps crypto/signature_verifier.h to accept 16 // DNSSECKeySet function wraps crypto/signature_verifier.h to accept
17 // DNSSEC encodings. (See RFC 4043) 17 // DNSSEC encodings. (See RFC 4043)
18 class NET_TEST DNSSECKeySet { 18 class NET_EXPORT_PRIVATE DNSSECKeySet {
19 public: 19 public:
20 DNSSECKeySet(); 20 DNSSECKeySet();
21 ~DNSSECKeySet(); 21 ~DNSSECKeySet();
22 22
23 // AddKey adds a key to the trusted set. 23 // AddKey adds a key to the trusted set.
24 // dnskey: the RRDATA of a DNSKEY. 24 // dnskey: the RRDATA of a DNSKEY.
25 bool AddKey(const base::StringPiece& dnskey); 25 bool AddKey(const base::StringPiece& dnskey);
26 26
27 // CheckSignature checks the DNSSEC signature on set of resource records. 27 // CheckSignature checks the DNSSEC signature on set of resource records.
28 // name: the domain that the records are from 28 // name: the domain that the records are from
(...skipping 25 matching lines...) Expand all
54 std::string ASN1WrapDNSKEY(const base::StringPiece& dnskey); 54 std::string ASN1WrapDNSKEY(const base::StringPiece& dnskey);
55 55
56 bool ignore_timestamps_; 56 bool ignore_timestamps_;
57 std::vector<uint16> keyids_; 57 std::vector<uint16> keyids_;
58 std::vector<std::string> public_keys_; 58 std::vector<std::string> public_keys_;
59 }; 59 };
60 60
61 } // namespace net 61 } // namespace net
62 62
63 #endif // NET_BASE_DNSSEC_KEYSET_H_ 63 #endif // NET_BASE_DNSSEC_KEYSET_H_
OLDNEW
« no previous file with comments | « net/base/dnssec_chain_verifier.h ('k') | net/base/escape.h » ('j') | net/base/net_export.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698