diff options
author | asanka <asanka@chromium.org> | 2016-03-23 09:20:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-23 16:22:04 +0000 |
commit | 5ffd5d79244e6c9928ed465fcfed8a136d04140a (patch) | |
tree | 61b94a189d803d0d262244654252bf8fec7fb691 /net/http/http_auth_handler_unittest.cc | |
parent | da4111853b1da632bf7566e3505f40ef9cca1a66 (diff) | |
download | chromium_src-5ffd5d79244e6c9928ed465fcfed8a136d04140a.zip chromium_src-5ffd5d79244e6c9928ed465fcfed8a136d04140a.tar.gz chromium_src-5ffd5d79244e6c9928ed465fcfed8a136d04140a.tar.bz2 |
[net/http auth] Support channel bindings for HTTP authentication.
Start using tls-server-end-point channel bindings for HTTP
authentication if a certificate is available. The current implementation
should work on Windows and Posix. Currently only SHA-256, SHA-384, and
SHA-512 are supported for generating channel bindings.
BUG=270219
R=rsleevi@chromium.org,davidben@chromium.org
Review URL: https://codereview.chromium.org/1408433006
Cr-Commit-Position: refs/heads/master@{#382858}
Diffstat (limited to 'net/http/http_auth_handler_unittest.cc')
-rw-r--r-- | net/http/http_auth_handler_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_auth_handler_unittest.cc b/net/http/http_auth_handler_unittest.cc index 5757bb6..1bb384f 100644 --- a/net/http/http_auth_handler_unittest.cc +++ b/net/http/http_auth_handler_unittest.cc @@ -14,6 +14,7 @@ #include "net/log/test_net_log.h" #include "net/log/test_net_log_entry.h" #include "net/log/test_net_log_util.h" +#include "net/ssl/ssl_info.h" #include "testing/gtest/include/gtest/gtest.h" namespace net { @@ -43,7 +44,8 @@ TEST(HttpAuthHandlerTest, NetLog) { BoundNetLog bound_net_log( BoundNetLog::Make(&test_net_log, NetLog::SOURCE_NONE)); - mock_handler.InitFromChallenge(&tokenizer, target, + SSLInfo empty_ssl_info; + mock_handler.InitFromChallenge(&tokenizer, target, empty_ssl_info, origin, bound_net_log); mock_handler.SetGenerateExpectation(async, rv); mock_handler.GenerateAuthToken(&credentials, &request, |