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

Unified Diff: net/http/http_auth_gssapi_posix.cc

Issue 2002063005: [net/auth] Disable use of channel bindings on Posix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_gssapi_posix.cc
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc
index 891bd8de4efae8dc8df61f9a432866d57f46b4b4..09c15b78a1f9e9c15159506d99755fad9273fa8c 100644
--- a/net/http/http_auth_gssapi_posix.cc
+++ b/net/http/http_auth_gssapi_posix.cc
@@ -846,18 +846,6 @@ int HttpAuthGSSAPI::GetNextSecurityToken(const std::string& spn,
}
ScopedName scoped_name(principal_name, library_);
- std::vector<char> channel_bindings_data;
- std::unique_ptr<gss_channel_bindings_struct> gss_channel_bindings;
- if (!channel_bindings.empty()) {
- gss_channel_bindings.reset(new gss_channel_bindings_struct);
- memset(gss_channel_bindings.get(), 0, sizeof(gss_channel_bindings_struct));
- channel_bindings_data.assign(channel_bindings.begin(),
- channel_bindings.end());
- gss_channel_bindings->application_data.value = channel_bindings_data.data();
- gss_channel_bindings->application_data.length =
- channel_bindings_data.size();
- }
-
// Continue creating a security context.
OM_uint32 req_flags = 0;
if (can_delegate_)
@@ -865,9 +853,7 @@ int HttpAuthGSSAPI::GetNextSecurityToken(const std::string& spn,
major_status = library_->init_sec_context(
&minor_status, GSS_C_NO_CREDENTIAL, scoped_sec_context_.receive(),
principal_name, gss_oid_, req_flags, GSS_C_INDEFINITE,
- gss_channel_bindings ? gss_channel_bindings.get()
- : GSS_C_NO_CHANNEL_BINDINGS,
- in_token,
+ GSS_C_NO_CHANNEL_BINDINGS, in_token,
nullptr, // actual_mech_type
out_token,
nullptr, // ret flags
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698