summaryrefslogtreecommitdiffstats
path: root/net/base/dns_util.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* net: support SHA512 hashes in DNSSEC chains.agl@chromium.org2012-04-171-0/+1
| | | | | | | | | | | | Patch-by: Simon Arlott BUG=122239 TEST=https://chromium-122239.test.lp0.eu/ Review URL: http://codereview.chromium.org/10082010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132612 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: remove DnsRRResolver"agl@chromium.org2012-02-231-0/+37
| | | | | | This reverts commit r114845. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123247 0039d316-1c4b-4281-b951-d872f2087c98
* DnsClient refactoring + features (timeout, suffix search, server rotation).szym@chromium.org2012-01-261-2/+3
| | | | | | | | | | | | | | DnsClient::Request ==> DnsTransaction DnsTransaction ==> DnsTransactionImpl DnsClient ==> DnsTransactionFactory BUG=109949 TEST=net_unittests --gtest_filter=Dns* Review URL: http://codereview.chromium.org/9190031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119146 0039d316-1c4b-4281-b951-d872f2087c98
* net: remove DnsRRResolveragl@chromium.org2011-12-161-37/+0
| | | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/8963019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114845 0039d316-1c4b-4281-b951-d872f2087c98
* Isolates generic DnsClient from AsyncHostResolver. szym@chromium.org2011-12-081-3/+7
| | | | | | | | | | | | | | | | | | | | | DnsClient provides a generic DNS client that allows fetching resource records. DnsClient is very lightweight and does not support aggregation, queuing or prioritization of requests. This is the first CL in a series to merge AsyncHostResolver into HostResolverImpl. Also introduces general-purpose BigEndianReader/Writer. Removes DnsTransactionTest-related suppressions. BUG=90881,80225,106688 TEST=./net_unittests Review URL: http://codereview.chromium.org/8852009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113640 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113282 - Isolates generic DnsClient from AsyncHostResolver. cbentzel@chromium.org2011-12-071-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | There were a few memory issues including access of unadressable memory. DnsClient provides a generic DNS client that allows fetching resource records. DnsClient is very lightweight and does not support aggregation, queuing or prioritization of requests. This is the first CL in a series to merge AsyncHostResolver into HostResolverImpl. Also introduces general-purpose BigEndianReader/Writer. BUG=90881 TEST=./net_unittests Review URL: http://codereview.chromium.org/8762001 TBR=szym@chromium.org Review URL: http://codereview.chromium.org/8835011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113384 0039d316-1c4b-4281-b951-d872f2087c98
* Isolates generic DnsClient from AsyncHostResolver. szym@chromium.org2011-12-061-3/+7
| | | | | | | | | | | | | | | | | | | DnsClient provides a generic DNS client that allows fetching resource records. DnsClient is very lightweight and does not support aggregation, queuing or prioritization of requests. This is the first CL in a series to merge AsyncHostResolver into HostResolverImpl. Also introduces general-purpose BigEndianReader/Writer. BUG=90881 TEST=./net_unittests Review URL: http://codereview.chromium.org/8762001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113282 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-121-5/+6
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* Implements DnsRequest and DnsResponse classes.agayev@chromium.org2011-06-031-1/+5
| | | | | | | | | BUG=60149 TEST=net_unittests --gtest_filter="DnsQuery*:DnsResponse*" Review URL: http://codereview.chromium.org/7065062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87868 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 87809 - Added DnsQuery classagayev@chromium.org2011-06-031-5/+1
| | | | | | | | | | | | BUG=60149 TEST=dns_query_unittests Review URL: http://codereview.chromium.org/7008021 TBR=agayev@chromium.org Review URL: http://codereview.chromium.org/7056050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87812 0039d316-1c4b-4281-b951-d872f2087c98
* Added DnsQuery classagayev@chromium.org2011-06-031-1/+5
| | | | | | | | | BUG=60149 TEST=dns_query_unittests Review URL: http://codereview.chromium.org/7008021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87809 0039d316-1c4b-4281-b951-d872f2087c98
* net: switch from TXT DNS records to CAA.agl@chromium.org2011-06-021-1/+1
| | | | | | | | | | | | | The format of the keys-in-DNS record has started to solidify into CAA. This change starts to switch over to using CAA records. None of this code is enabled by default in Chrome. BUG=none TEST=net_unittests Review URL: http://codereview.chromium.org/6281012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87677 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to more code, this time what's used by chrome.dllrvargas@google.com2011-05-311-1/+1
| | | | | | | | BUG=76997 TEST=none Review URL: http://codereview.chromium.org/7082026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87393 0039d316-1c4b-4281-b951-d872f2087c98
* moved Buffer to dns_util as DnsResponseBufferagayev@chromium.org2011-05-241-0/+32
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/7063024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86467 0039d316-1c4b-4281-b951-d872f2087c98
* net: Add NET_API to net/baservargas@google.com2011-05-181-4/+5
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/6969077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85785 0039d316-1c4b-4281-b951-d872f2087c98
* HSTS: add net-internals UI.agl@chromium.org2011-02-171-0/+3
| | | | | | | | | | | | | | This change adds a simple DOMUI interface to the HSTS list. Since the list is stored, hashed in memory and on disk, there's no list of entries. But the set can be queried and we can provide insertion and deletion. BUG=none TEST=Open about:net-internals, goto HSTS tab. Review URL: http://codereview.chromium.org/6500010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75282 0039d316-1c4b-4281-b951-d872f2087c98
* net: enable DnsRRResolver on Windowsagl@chromium.org2011-01-131-0/+2
| | | | | | | | | | | | (Note that this code was developed by try-server so if something appears to be terribly wrong, it probably is.) BUG=none TEST=net_unittests http://codereview.chromium.org/6180001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71349 0039d316-1c4b-4281-b951-d872f2087c98
* net: perform a non-A DNS lookup for HTTPS hosts.agl@chromium.org2011-01-061-0/+1
| | | | | | | | | | | | | | | | | | | Since SSLHostInfo is enabled by default now, this will cause a DNS lookup for a random RR type (13172) for each HTTPS host. (Although many of these lookups will hit the in-process cache. Also, this won't do anything on non-Linux machines because I haven't gotten the DNS lookup code working on them yet.) At some point in the future we'll probably want to do these lookups in order to get information for certificate validation. This change just exists so that we can measure how long these lookups take. BUG=none TEST=none http://codereview.chromium.org/6041004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70631 0039d316-1c4b-4281-b951-d872f2087c98
* net: add caching and inflight merging to DnsRRResolveragl@chromium.org2010-09-301-0/+1
| | | | | | | | | | (This also removes support for DNSSEC lookups. This is a temporary measure while I work on refactoring it.) BUG=none TEST=net_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61071 0039d316-1c4b-4281-b951-d872f2087c98
* net: add DNSSEC tool and CNAME support.agl@chromium.org2010-09-091-0/+1
| | | | | | | | | | | | | | | 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
* net: add embedded DNSSEC chain support.agl@chromium.org2010-08-111-1/+12
| | | | | | | | | | | | | | | | | Now that the DNS root is signed we have a good trust path in several TLDs (including .org). This patch enables self-signed certificates to include a DNSSEC chain as an extension which proves a CERT record, containing the fingerprint of the public key. The format of the chain is still undecided, so this is only enabled with --enable-dnssec-certs. BUG=none TEST=net_unittests http://codereview.chromium.org/2806076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55771 0039d316-1c4b-4281-b951-d872f2087c98
* net: add DnsRRResovler to fetch arbitary DNS resource types.agl@chromium.org2010-08-041-0/+10
| | | | | | | | | | | (Linux/Mac only for now.) TEST=net_unittests BUG=none http://codereview.chromium.org/3029035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54907 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Correctly handle trailing dots in hostname blacklist. jschuh@google.com2010-03-081-0/+3
| | | | | | | | | | | Submitted for inferno@chromium.org BUG=35510 TEST=HostContentSettingsMapTest.HostTrimEndingDotCheck Review URL: http://codereview.chromium.org/669284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40921 0039d316-1c4b-4281-b951-d872f2087c98
* ForceTLS: hash hostnames, handle subdomains, canonicalise.agl@chromium.org2009-09-091-0/+25
It turns out that JSON[Reader|Writer] cannot handle periods in key names(!). Because of this, an also to avoid leaking a sort of ForceTLS browser history in the state file, we hash the domain names. Also, this patch tries to implement the RFCs with respect to canonicalising the names. Since IDN processing has already occured by the time the name reaches us, there's only so much that we can do however. http://codereview.chromium.org/201033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25696 0039d316-1c4b-4281-b951-d872f2087c98