summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_gssapi_posix.h
diff options
context:
space:
mode:
authordanno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 12:47:05 +0000
committerdanno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-12 12:47:05 +0000
commitac7f3fdb4987d7f44c1612d55437cfcb3eb263f6 (patch)
treec017e812bb298f7f2c7341372ab62021df3c8a29 /net/http/http_auth_gssapi_posix.h
parentbb33eb1e2468eacb996e19493a36c3f6e4625b12 (diff)
downloadchromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.zip
chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.gz
chromium_src-ac7f3fdb4987d7f44c1612d55437cfcb3eb263f6.tar.bz2
Support specifying the GSSAPI library that will be used.
This preference can be set either via command-line or via group policy. BUG=53625 TEST=unittests: ConfigurationPolicyPrefStore*; net_unittests: HttpAuthHandlerNegotiateTest.*:HttpAuthGSSAPIPOSIXTest.*; manually: start Chrome with command-line switch --gssapi-library-name=XYZ and see if this results in the Chrome process loading /usr/lib/whatever/XYZ as soon as an authenticated HTTP site is encountered. Review URL: http://codereview.chromium.org/4560001 Patch from Jakob Kummerow <jkummerow@google.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_gssapi_posix.h')
-rw-r--r--net/http/http_auth_gssapi_posix.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/http/http_auth_gssapi_posix.h b/net/http/http_auth_gssapi_posix.h
index 3ea1131..9b1d0ed 100644
--- a/net/http/http_auth_gssapi_posix.h
+++ b/net/http/http_auth_gssapi_posix.h
@@ -95,15 +95,14 @@ class GSSAPILibrary {
int* locally_initiated,
int* open) = 0;
- // Get the default GSSPILibrary instance. The object returned is a singleton
- // instance, and the caller should not delete it.
- static GSSAPILibrary* GetDefault();
};
// GSSAPISharedLibrary class is defined here so that unit tests can access it.
class GSSAPISharedLibrary : public GSSAPILibrary {
public:
- GSSAPISharedLibrary();
+ // If |gssapi_library_name| is empty, hard-coded default library names are
+ // used.
+ explicit GSSAPISharedLibrary(const std::string& gssapi_library_name);
virtual ~GSSAPISharedLibrary();
// GSSAPILibrary methods:
@@ -179,6 +178,7 @@ class GSSAPISharedLibrary : public GSSAPILibrary {
bool initialized_;
+ std::string gssapi_library_name_;
// Need some way to invalidate the library.
base::NativeLibrary gssapi_library_;