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

Unified Diff: net/http/http_auth_gssapi_posix.cc

Issue 3155046: Add support for delegated Kerberos tickets during Negotiate authentication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_gssapi_posix.h ('k') | net/http/http_auth_handler_negotiate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_gssapi_posix.cc
===================================================================
--- net/http/http_auth_gssapi_posix.cc (revision 57541)
+++ net/http/http_auth_gssapi_posix.cc (working copy)
@@ -677,7 +677,8 @@
: scheme_(scheme),
gss_oid_(gss_oid),
library_(library),
- scoped_sec_context_(library) {
+ scoped_sec_context_(library),
+ can_delegate_(false) {
DCHECK(library_);
}
@@ -698,6 +699,10 @@
return !NeedsIdentity();
}
+void HttpAuthGSSAPI::Delegate() {
+ can_delegate_ = true;
+}
+
bool HttpAuthGSSAPI::ParseChallenge(HttpAuth::ChallengeTokenizer* tok) {
// Verify the challenge's auth-scheme.
if (!tok->valid() ||
@@ -799,6 +804,8 @@
// Continue creating a security context.
OM_uint32 req_flags = 0;
+ if (can_delegate_)
+ req_flags |= GSS_C_DELEG_FLAG;
major_status = library_->init_sec_context(
&minor_status,
GSS_C_NO_CREDENTIAL,
« no previous file with comments | « net/http/http_auth_gssapi_posix.h ('k') | net/http/http_auth_handler_negotiate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698