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

Side by Side Diff: net/http/http_auth_gssapi_posix.h

Issue 10695186: Use SPNEGO mechanism with GSSAPI on Posix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 6 #define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
7 7
8 #include <gssapi.h> 8 #include <gssapi.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/native_library.h" 13 #include "base/native_library.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/http/http_auth.h" 15 #include "net/http/http_auth.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X; 19 // Mechanism OID for GSSAPI. We always use SPNEGO.
20 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE; 20 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_SPNEGO_MECH_OID_DESC;
21 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_KRB5_MECH_OID_DESC;
22 21
23 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI 22 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI
24 // library. The default implementation attempts to load one of the standard 23 // library. The default implementation attempts to load one of the standard
25 // GSSAPI library implementations, then simply passes the arguments on to 24 // GSSAPI library implementations, then simply passes the arguments on to
26 // that implementation. 25 // that implementation.
27 class NET_EXPORT_PRIVATE GSSAPILibrary { 26 class NET_EXPORT_PRIVATE GSSAPILibrary {
28 public: 27 public:
29 virtual ~GSSAPILibrary() {} 28 virtual ~GSSAPILibrary() {}
30 29
31 // Initializes the library, including any necessary dynamic libraries. 30 // Initializes the library, including any necessary dynamic libraries.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 gss_OID gss_oid_; 262 gss_OID gss_oid_;
264 GSSAPILibrary* library_; 263 GSSAPILibrary* library_;
265 std::string decoded_server_auth_token_; 264 std::string decoded_server_auth_token_;
266 ScopedSecurityContext scoped_sec_context_; 265 ScopedSecurityContext scoped_sec_context_;
267 bool can_delegate_; 266 bool can_delegate_;
268 }; 267 };
269 268
270 } // namespace net 269 } // namespace net
271 270
272 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 271 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_auth_gssapi_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698