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

Unified Diff: net/http/http_auth_sspi_win.cc

Issue 4560001: Support specifying the GSSAPI library that will be used. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix another compile error on Windows Created 10 years, 1 month 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_sspi_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_sspi_win.cc
diff --git a/net/http/http_auth_sspi_win.cc b/net/http/http_auth_sspi_win.cc
index d6fedf910e5004e2be6eef91b57d978cf239afd7..c5264cd59b89a7cb4519b4791921f9924ad4a40a 100644
--- a/net/http/http_auth_sspi_win.cc
+++ b/net/http/http_auth_sspi_win.cc
@@ -9,7 +9,6 @@
#include "base/base64.h"
#include "base/logging.h"
-#include "base/singleton.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "net/base/net_errors.h"
@@ -425,68 +424,4 @@ int DetermineMaxTokenLength(SSPILibrary* library,
return OK;
}
-class SSPILibraryDefault : public SSPILibrary {
- public:
- SSPILibraryDefault() {}
- virtual ~SSPILibraryDefault() {}
-
- virtual SECURITY_STATUS AcquireCredentialsHandle(LPWSTR pszPrincipal,
- LPWSTR pszPackage,
- unsigned long fCredentialUse,
- void* pvLogonId,
- void* pvAuthData,
- SEC_GET_KEY_FN pGetKeyFn,
- void* pvGetKeyArgument,
- PCredHandle phCredential,
- PTimeStamp ptsExpiry) {
- return ::AcquireCredentialsHandle(pszPrincipal, pszPackage, fCredentialUse,
- pvLogonId, pvAuthData, pGetKeyFn,
- pvGetKeyArgument, phCredential,
- ptsExpiry);
- }
-
- virtual SECURITY_STATUS InitializeSecurityContext(PCredHandle phCredential,
- PCtxtHandle phContext,
- SEC_WCHAR* pszTargetName,
- unsigned long fContextReq,
- unsigned long Reserved1,
- unsigned long TargetDataRep,
- PSecBufferDesc pInput,
- unsigned long Reserved2,
- PCtxtHandle phNewContext,
- PSecBufferDesc pOutput,
- unsigned long* contextAttr,
- PTimeStamp ptsExpiry) {
- return ::InitializeSecurityContext(phCredential, phContext, pszTargetName,
- fContextReq, Reserved1, TargetDataRep,
- pInput, Reserved2, phNewContext, pOutput,
- contextAttr, ptsExpiry);
- }
-
- virtual SECURITY_STATUS QuerySecurityPackageInfo(LPWSTR pszPackageName,
- PSecPkgInfoW *pkgInfo) {
- return ::QuerySecurityPackageInfo(pszPackageName, pkgInfo);
- }
-
- virtual SECURITY_STATUS FreeCredentialsHandle(PCredHandle phCredential) {
- return ::FreeCredentialsHandle(phCredential);
- }
-
- virtual SECURITY_STATUS DeleteSecurityContext(PCtxtHandle phContext) {
- return ::DeleteSecurityContext(phContext);
- }
-
- virtual SECURITY_STATUS FreeContextBuffer(PVOID pvContextBuffer) {
- return ::FreeContextBuffer(pvContextBuffer);
- }
-
- private:
- friend struct DefaultSingletonTraits<SSPILibraryDefault>;
-};
-
-// static
-SSPILibrary* SSPILibrary::GetDefault() {
- return Singleton<SSPILibraryDefault>::get();
-}
-
} // namespace net
« no previous file with comments | « net/http/http_auth_sspi_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698