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

Side by Side 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 library handling on Windows; port to ToT 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« net/http/http_auth_handler_negotiate_unittest.cc ('K') | « 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