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

Side by Side Diff: net/http/http_auth_gssapi_posix.cc

Issue 2901103002: Fix closing namespace comments in //net. (Closed)
Patch Set: Rebase. Created 3 years, 6 months 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
« no previous file with comments | « net/dns/record_parsed.cc ('k') | net/http/http_auth_multi_round_parse_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 OM_uint32 supplemental_status = GSS_SUPPLEMENTARY_INFO(major_status); 811 OM_uint32 supplemental_status = GSS_SUPPLEMENTARY_INFO(major_status);
812 // Replays could indicate an attack. 812 // Replays could indicate an attack.
813 if (supplemental_status & (GSS_S_DUPLICATE_TOKEN | GSS_S_OLD_TOKEN | 813 if (supplemental_status & (GSS_S_DUPLICATE_TOKEN | GSS_S_OLD_TOKEN |
814 GSS_S_UNSEQ_TOKEN | GSS_S_GAP_TOKEN)) 814 GSS_S_UNSEQ_TOKEN | GSS_S_GAP_TOKEN))
815 return ERR_INVALID_RESPONSE; 815 return ERR_INVALID_RESPONSE;
816 816
817 // At this point, every documented status has been checked. 817 // At this point, every documented status has been checked.
818 return ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS; 818 return ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS;
819 } 819 }
820 820
821 } 821 } // anonymous namespace
822 822
823 int HttpAuthGSSAPI::GetNextSecurityToken(const std::string& spn, 823 int HttpAuthGSSAPI::GetNextSecurityToken(const std::string& spn,
824 const std::string& channel_bindings, 824 const std::string& channel_bindings,
825 gss_buffer_t in_token, 825 gss_buffer_t in_token,
826 gss_buffer_t out_token) { 826 gss_buffer_t out_token) {
827 // Create a name for the principal 827 // Create a name for the principal
828 // TODO(cbentzel): Just do this on the first pass? 828 // TODO(cbentzel): Just do this on the first pass?
829 std::string spn_principal = spn; 829 std::string spn_principal = spn;
830 gss_buffer_desc spn_buffer = GSS_C_EMPTY_BUFFER; 830 gss_buffer_desc spn_buffer = GSS_C_EMPTY_BUFFER;
831 spn_buffer.value = const_cast<char*>(spn_principal.c_str()); 831 spn_buffer.value = const_cast<char*>(spn_principal.c_str());
(...skipping 30 matching lines...) Expand all
862 if (rv != OK) { 862 if (rv != OK) {
863 LOG(ERROR) << "Problem initializing context. \n" 863 LOG(ERROR) << "Problem initializing context. \n"
864 << DisplayExtendedStatus(library_, major_status, minor_status) 864 << DisplayExtendedStatus(library_, major_status, minor_status)
865 << '\n' 865 << '\n'
866 << DescribeContext(library_, scoped_sec_context_.get()); 866 << DescribeContext(library_, scoped_sec_context_.get());
867 } 867 }
868 return rv; 868 return rv;
869 } 869 }
870 870
871 } // namespace net 871 } // namespace net
OLDNEW
« no previous file with comments | « net/dns/record_parsed.cc ('k') | net/http/http_auth_multi_round_parse_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698