OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // See "SSPI Sample Application" at | 5 // See "SSPI Sample Application" at |
6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx | 6 // http://msdn.microsoft.com/en-us/library/aa918273.aspx |
7 | 7 |
8 #include "net/http/http_auth_sspi_win.h" | 8 #include "net/http/http_auth_sspi_win.h" |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/singleton.h" | 12 #include "base/singleton.h" |
cbentzel
2010/11/11 03:37:51
I think base/singleton.h include can be removed no
Jakob Kummerow (corp)
2010/11/11 11:10:53
Done.
Same for http_auth_gssapi_posix.h, btw.
| |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.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 namespace { | 20 namespace { |
21 | 21 |
22 int MapAcquireCredentialsStatusToError(SECURITY_STATUS status, | 22 int MapAcquireCredentialsStatusToError(SECURITY_STATUS status, |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
472 return ::FreeCredentialsHandle(phCredential); | 472 return ::FreeCredentialsHandle(phCredential); |
473 } | 473 } |
474 | 474 |
475 virtual SECURITY_STATUS DeleteSecurityContext(PCtxtHandle phContext) { | 475 virtual SECURITY_STATUS DeleteSecurityContext(PCtxtHandle phContext) { |
476 return ::DeleteSecurityContext(phContext); | 476 return ::DeleteSecurityContext(phContext); |
477 } | 477 } |
478 | 478 |
479 virtual SECURITY_STATUS FreeContextBuffer(PVOID pvContextBuffer) { | 479 virtual SECURITY_STATUS FreeContextBuffer(PVOID pvContextBuffer) { |
480 return ::FreeContextBuffer(pvContextBuffer); | 480 return ::FreeContextBuffer(pvContextBuffer); |
481 } | 481 } |
482 | |
483 private: | |
484 friend struct DefaultSingletonTraits<SSPILibraryDefault>; | |
485 }; | 482 }; |
486 | 483 |
487 // static | |
488 SSPILibrary* SSPILibrary::GetDefault() { | |
489 return Singleton<SSPILibraryDefault>::get(); | |
490 } | |
491 | |
492 } // namespace net | 484 } // namespace net |
OLD | NEW |