| OLD | NEW |
| 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 #include "net/http/http_auth_gssapi_posix.h" | 5 #include "net/http/http_auth_gssapi_posix.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 const gss_ctx_id_t context_handle) { | 339 const gss_ctx_id_t context_handle) { |
| 340 OM_uint32 major_status = 0; | 340 OM_uint32 major_status = 0; |
| 341 OM_uint32 minor_status = 0; | 341 OM_uint32 minor_status = 0; |
| 342 gss_name_t src_name = GSS_C_NO_NAME; | 342 gss_name_t src_name = GSS_C_NO_NAME; |
| 343 gss_name_t targ_name = GSS_C_NO_NAME; | 343 gss_name_t targ_name = GSS_C_NO_NAME; |
| 344 OM_uint32 lifetime_rec = 0; | 344 OM_uint32 lifetime_rec = 0; |
| 345 gss_OID mech_type = GSS_C_NO_OID; | 345 gss_OID mech_type = GSS_C_NO_OID; |
| 346 OM_uint32 ctx_flags = 0; | 346 OM_uint32 ctx_flags = 0; |
| 347 int locally_initiated = 0; | 347 int locally_initiated = 0; |
| 348 int open = 0; | 348 int open = 0; |
| 349 if (context_handle == GSS_C_NO_CONTEXT) |
| 350 return std::string("Context: GSS_C_NO_CONTEXT"); |
| 349 major_status = gssapi_lib->inquire_context(&minor_status, | 351 major_status = gssapi_lib->inquire_context(&minor_status, |
| 350 context_handle, | 352 context_handle, |
| 351 &src_name, | 353 &src_name, |
| 352 &targ_name, | 354 &targ_name, |
| 353 &lifetime_rec, | 355 &lifetime_rec, |
| 354 &mech_type, | 356 &mech_type, |
| 355 &ctx_flags, | 357 &ctx_flags, |
| 356 &locally_initiated, | 358 &locally_initiated, |
| 357 &open); | 359 &open); |
| 358 ScopedName(src_name, gssapi_lib); | 360 ScopedName(src_name, gssapi_lib); |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 if (rv != OK) { | 897 if (rv != OK) { |
| 896 LOG(ERROR) << "Problem initializing context. \n" | 898 LOG(ERROR) << "Problem initializing context. \n" |
| 897 << DisplayExtendedStatus(library_, major_status, minor_status) | 899 << DisplayExtendedStatus(library_, major_status, minor_status) |
| 898 << '\n' | 900 << '\n' |
| 899 << DescribeContext(library_, scoped_sec_context_.get()); | 901 << DescribeContext(library_, scoped_sec_context_.get()); |
| 900 } | 902 } |
| 901 return rv; | 903 return rv; |
| 902 } | 904 } |
| 903 | 905 |
| 904 } // namespace net | 906 } // namespace net |
| OLD | NEW |