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

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: 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') | net/http/http_auth_gssapi_posix.cc » ('J')
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 #pragma once 7 #pragma once
8 8
9 #include <gssapi.h> 9 #include <gssapi.h>
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/native_library.h" 14 #include "base/native_library.h"
15 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/http/http_auth.h" 16 #include "net/http/http_auth.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X; 20 // Mechanism OID for GSSAPI. We always use SPNEGO.
21 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE; 21 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_SPNEGO_MECH_OID_DESC;
22 NET_EXPORT_PRIVATE extern gss_OID CHROME_GSS_KRB5_MECH_OID_DESC;
23 22
24 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI 23 // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI
25 // library. The default implementation attempts to load one of the standard 24 // library. The default implementation attempts to load one of the standard
26 // GSSAPI library implementations, then simply passes the arguments on to 25 // GSSAPI library implementations, then simply passes the arguments on to
27 // that implementation. 26 // that implementation.
28 class NET_EXPORT_PRIVATE GSSAPILibrary { 27 class NET_EXPORT_PRIVATE GSSAPILibrary {
29 public: 28 public:
30 virtual ~GSSAPILibrary() {} 29 virtual ~GSSAPILibrary() {}
31 30
32 // Initializes the library, including any necessary dynamic libraries. 31 // Initializes the library, including any necessary dynamic libraries.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 gss_OID gss_oid_; 263 gss_OID gss_oid_;
265 GSSAPILibrary* library_; 264 GSSAPILibrary* library_;
266 std::string decoded_server_auth_token_; 265 std::string decoded_server_auth_token_;
267 ScopedSecurityContext scoped_sec_context_; 266 ScopedSecurityContext scoped_sec_context_;
268 bool can_delegate_; 267 bool can_delegate_;
269 }; 268 };
270 269
271 } // namespace net 270 } // namespace net
272 271
273 #endif // NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_ 272 #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') | net/http/http_auth_gssapi_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698