OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_DNS_UTIL_H_ | 5 #ifndef NET_BASE_DNS_UTIL_H_ |
6 #define NET_BASE_DNS_UTIL_H_ | 6 #define NET_BASE_DNS_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // DNS resource record types. See | 29 // DNS resource record types. See |
30 // http://www.iana.org/assignments/dns-parameters | 30 // http://www.iana.org/assignments/dns-parameters |
31 | 31 |
32 static const uint16 kDNS_CNAME = 5; | 32 static const uint16 kDNS_CNAME = 5; |
33 static const uint16 kDNS_TXT = 16; | 33 static const uint16 kDNS_TXT = 16; |
34 static const uint16 kDNS_CERT = 37; | 34 static const uint16 kDNS_CERT = 37; |
35 static const uint16 kDNS_DS = 43; | 35 static const uint16 kDNS_DS = 43; |
36 static const uint16 kDNS_RRSIG = 46; | 36 static const uint16 kDNS_RRSIG = 46; |
37 static const uint16 kDNS_DNSKEY = 48; | 37 static const uint16 kDNS_DNSKEY = 48; |
38 static const uint16 kDNS_ANY = 0xff; | 38 static const uint16 kDNS_ANY = 0xff; |
| 39 static const uint16 kDNS_CAA = 13172; // temporary, not IANA |
39 static const uint16 kDNS_TESTING = 0xfffe; // in private use area. | 40 static const uint16 kDNS_TESTING = 0xfffe; // in private use area. |
40 | 41 |
41 // http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml | 42 // http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml |
42 static const uint8 kDNSSEC_RSA_SHA1 = 5; | 43 static const uint8 kDNSSEC_RSA_SHA1 = 5; |
43 static const uint8 kDNSSEC_RSA_SHA1_NSEC3 = 7; | 44 static const uint8 kDNSSEC_RSA_SHA1_NSEC3 = 7; |
44 static const uint8 kDNSSEC_RSA_SHA256 = 8; | 45 static const uint8 kDNSSEC_RSA_SHA256 = 8; |
45 | 46 |
46 // RFC 4509 | 47 // RFC 4509 |
47 static const uint8 kDNSSEC_SHA1 = 1; | 48 static const uint8 kDNSSEC_SHA1 = 1; |
48 static const uint8 kDNSSEC_SHA256 = 2; | 49 static const uint8 kDNSSEC_SHA256 = 2; |
49 | 50 |
50 } // namespace net | 51 } // namespace net |
51 | 52 |
52 #endif // NET_BASE_DNS_UTIL_H_ | 53 #endif // NET_BASE_DNS_UTIL_H_ |
OLD | NEW |