diff options
author | ahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-10 17:28:05 +0000 |
---|---|---|
committer | ahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-10 17:28:05 +0000 |
commit | 20737699af37ed66f628e5222962c118d6a06175 (patch) | |
tree | 46df315823ad31eb7a5daa826e9f2b03485cbb24 /net | |
parent | 390433fb12f15cd57ec871f54ebe0a7fc1fc08fe (diff) | |
download | chromium_src-20737699af37ed66f628e5222962c118d6a06175.zip chromium_src-20737699af37ed66f628e5222962c118d6a06175.tar.gz chromium_src-20737699af37ed66f628e5222962c118d6a06175.tar.bz2 |
Removed gssapi namespace.
BUG=33033.
TEST=None.
Review URL: http://codereview.chromium.org/2682006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/http/http_auth_gssapi_posix.cc | 160 | ||||
-rw-r--r-- | net/http/http_auth_gssapi_posix.h | 173 | ||||
-rw-r--r-- | net/third_party/gssapi/README.chromium | 4 | ||||
-rw-r--r-- | net/third_party/gssapi/gssapi.h | 24 |
4 files changed, 177 insertions, 184 deletions
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc index d49ebe4..942a115 100644 --- a/net/http/http_auth_gssapi_posix.cc +++ b/net/http/http_auth_gssapi_posix.cc @@ -14,19 +14,21 @@ #include "net/base/net_errors.h" #include "net/base/net_util.h" -namespace { +namespace net { -gssapi::gss_OID_desc LOCAL_GSS_C_NT_HOSTBASED_SERVICE_VAL = { +gss_OID_desc CHROME_GSS_C_NT_HOSTBASED_SERVICE_X_VAL = { + 6, + const_cast<char *>("\x2b\x06\x01\x05\x06\x02") +}; +gss_OID_desc CHROME_GSS_C_NT_HOSTBASED_SERVICE_VAL = { 10, const_cast<char *>("\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04") }; -gssapi::gss_OID LOCAL_GSS_C_NT_HOSTBASED_SERVICE = - &LOCAL_GSS_C_NT_HOSTBASED_SERVICE_VAL; - -} // namespace - -namespace net { +gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X = + &CHROME_GSS_C_NT_HOSTBASED_SERVICE_X_VAL; +gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE = + &CHROME_GSS_C_NT_HOSTBASED_SERVICE_VAL; GSSAPISharedLibrary::GSSAPISharedLibrary() : initialized_(false), @@ -111,56 +113,56 @@ bool GSSAPISharedLibrary::BindMethods() { return true; } -gssapi::OM_uint32 GSSAPISharedLibrary::import_name( - gssapi::OM_uint32* minor_status, - const gssapi::gss_buffer_t input_name_buffer, - const gssapi::gss_OID input_name_type, - gssapi::gss_name_t* output_name) { +OM_uint32 GSSAPISharedLibrary::import_name( + OM_uint32* minor_status, + const gss_buffer_t input_name_buffer, + const gss_OID input_name_type, + gss_name_t* output_name) { DCHECK(initialized_); return import_name_(minor_status, input_name_buffer, input_name_type, output_name); } -gssapi::OM_uint32 GSSAPISharedLibrary::release_name( - gssapi::OM_uint32* minor_status, - gssapi::gss_name_t* input_name) { +OM_uint32 GSSAPISharedLibrary::release_name( + OM_uint32* minor_status, + gss_name_t* input_name) { DCHECK(initialized_); return release_name_(minor_status, input_name); } -gssapi::OM_uint32 GSSAPISharedLibrary::release_buffer( - gssapi::OM_uint32* minor_status, - gssapi::gss_buffer_t buffer) { +OM_uint32 GSSAPISharedLibrary::release_buffer( + OM_uint32* minor_status, + gss_buffer_t buffer) { DCHECK(initialized_); return release_buffer_(minor_status, buffer); } -gssapi::OM_uint32 GSSAPISharedLibrary::display_status( - gssapi::OM_uint32* minor_status, - gssapi::OM_uint32 status_value, +OM_uint32 GSSAPISharedLibrary::display_status( + OM_uint32* minor_status, + OM_uint32 status_value, int status_type, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32* message_context, - gssapi::gss_buffer_t status_string) { + const gss_OID mech_type, + OM_uint32* message_context, + gss_buffer_t status_string) { DCHECK(initialized_); return display_status_(minor_status, status_value, status_type, mech_type, message_context, status_string); } -gssapi::OM_uint32 GSSAPISharedLibrary::init_sec_context( - gssapi::OM_uint32* minor_status, - const gssapi::gss_cred_id_t initiator_cred_handle, - gssapi::gss_ctx_id_t* context_handle, - const gssapi::gss_name_t target_name, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32 req_flags, - gssapi::OM_uint32 time_req, - const gssapi::gss_channel_bindings_t input_chan_bindings, - const gssapi::gss_buffer_t input_token, - gssapi::gss_OID* actual_mech_type, - gssapi::gss_buffer_t output_token, - gssapi::OM_uint32* ret_flags, - gssapi::OM_uint32* time_rec) { +OM_uint32 GSSAPISharedLibrary::init_sec_context( + OM_uint32* minor_status, + const gss_cred_id_t initiator_cred_handle, + gss_ctx_id_t* context_handle, + const gss_name_t target_name, + const gss_OID mech_type, + OM_uint32 req_flags, + OM_uint32 time_req, + const gss_channel_bindings_t input_chan_bindings, + const gss_buffer_t input_token, + gss_OID* actual_mech_type, + gss_buffer_t output_token, + OM_uint32* ret_flags, + OM_uint32* time_rec) { DCHECK(initialized_); return init_sec_context_(minor_status, initiator_cred_handle, @@ -177,13 +179,13 @@ gssapi::OM_uint32 GSSAPISharedLibrary::init_sec_context( time_rec); } -gssapi::OM_uint32 GSSAPISharedLibrary::wrap_size_limit( - gssapi::OM_uint32* minor_status, - const gssapi::gss_ctx_id_t context_handle, +OM_uint32 GSSAPISharedLibrary::wrap_size_limit( + OM_uint32* minor_status, + const gss_ctx_id_t context_handle, int conf_req_flag, - gssapi::gss_qop_t qop_req, - gssapi::OM_uint32 req_output_size, - gssapi::OM_uint32* max_input_size) { + gss_qop_t qop_req, + OM_uint32 req_output_size, + OM_uint32* max_input_size) { DCHECK(initialized_); return wrap_size_limit_(minor_status, context_handle, @@ -199,20 +201,20 @@ GSSAPILibrary* GSSAPILibrary::GetDefault() { namespace { -std::string DisplayStatus(gssapi::OM_uint32 major_status, - gssapi::OM_uint32 minor_status) { +std::string DisplayStatus(OM_uint32 major_status, + OM_uint32 minor_status) { if (major_status == GSS_S_COMPLETE) return "OK"; return StringPrintf("0x%08x 0x%08x", major_status, minor_status); } std::string DisplayCode(GSSAPILibrary* gssapi_lib, - gssapi::OM_uint32 status, - gssapi::OM_uint32 status_code_type) { + OM_uint32 status, + OM_uint32 status_code_type) { const int kMaxDisplayIterations = 8; const size_t kMaxMsgLength = 4096; // msg_ctx needs to be outside the loop because it is invoked multiple times. - gssapi::OM_uint32 msg_ctx = 0; + OM_uint32 msg_ctx = 0; std::string rv = StringPrintf("(0x%08X)", status); // This loop should continue iterating until msg_ctx is 0 after the first @@ -222,9 +224,9 @@ std::string DisplayCode(GSSAPILibrary* gssapi_lib, // will not exceed |kMaxMsgLength|*2-1. for (int i = 0; i < kMaxDisplayIterations && rv.size() < kMaxMsgLength; ++i) { - gssapi::OM_uint32 min_stat; - gssapi::gss_buffer_desc_struct msg = GSS_C_EMPTY_BUFFER; - gssapi::OM_uint32 maj_stat = + OM_uint32 min_stat; + gss_buffer_desc_struct msg = GSS_C_EMPTY_BUFFER; + OM_uint32 maj_stat = gssapi_lib->display_status(&min_stat, status, status_code_type, GSS_C_NULL_OID, &msg_ctx, &msg); if (maj_stat == GSS_S_COMPLETE) { @@ -244,8 +246,8 @@ std::string DisplayCode(GSSAPILibrary* gssapi_lib, } std::string DisplayExtendedStatus(GSSAPILibrary* gssapi_lib, - gssapi::OM_uint32 major_status, - gssapi::OM_uint32 minor_status) { + OM_uint32 major_status, + OM_uint32 minor_status) { if (major_status == GSS_S_COMPLETE) return "OK"; std::string major = DisplayCode(gssapi_lib, major_status, GSS_C_GSS_CODE); @@ -253,10 +255,10 @@ std::string DisplayExtendedStatus(GSSAPILibrary* gssapi_lib, return StringPrintf("Major: %s | Minor: %s", major.c_str(), minor.c_str()); } -// ScopedName releases a gssapi::gss_name_t when it goes out of scope. +// ScopedName releases a gss_name_t when it goes out of scope. class ScopedName { public: - ScopedName(gssapi::gss_name_t name, + ScopedName(gss_name_t name, GSSAPILibrary* gssapi_lib) : name_(name), gssapi_lib_(gssapi_lib) { @@ -265,8 +267,8 @@ class ScopedName { ~ScopedName() { if (name_ != GSS_C_NO_NAME) { - gssapi::OM_uint32 minor_status = 0; - gssapi::OM_uint32 major_status = + OM_uint32 minor_status = 0; + OM_uint32 major_status = gssapi_lib_->release_name(&minor_status, &name_); if (major_status != GSS_S_COMPLETE) { LOG(WARNING) << "Problem releasing name. " @@ -277,16 +279,16 @@ class ScopedName { } private: - gssapi::gss_name_t name_; + gss_name_t name_; GSSAPILibrary* gssapi_lib_; DISALLOW_COPY_AND_ASSIGN(ScopedName); }; -// ScopedBuffer releases a gssapi::gss_buffer_t when it goes out of scope. +// ScopedBuffer releases a gss_buffer_t when it goes out of scope. class ScopedBuffer { public: - ScopedBuffer(gssapi::gss_buffer_t buffer, + ScopedBuffer(gss_buffer_t buffer, GSSAPILibrary* gssapi_lib) : buffer_(buffer), gssapi_lib_(gssapi_lib) { @@ -295,8 +297,8 @@ class ScopedBuffer { ~ScopedBuffer() { if (buffer_ != GSS_C_NO_BUFFER) { - gssapi::OM_uint32 minor_status = 0; - gssapi::OM_uint32 major_status = + OM_uint32 minor_status = 0; + OM_uint32 major_status = gssapi_lib_->release_buffer(&minor_status, buffer_); if (major_status != GSS_S_COMPLETE) { LOG(WARNING) << "Problem releasing buffer. " @@ -307,7 +309,7 @@ class ScopedBuffer { } private: - gssapi::gss_buffer_t buffer_; + gss_buffer_t buffer_; GSSAPILibrary* gssapi_lib_; DISALLOW_COPY_AND_ASSIGN(ScopedBuffer); @@ -315,9 +317,9 @@ class ScopedBuffer { } // namespace - HttpAuthGSSAPI::HttpAuthGSSAPI(GSSAPILibrary* library, - const std::string& scheme, - gssapi::gss_OID gss_oid) +HttpAuthGSSAPI::HttpAuthGSSAPI(GSSAPILibrary* library, + const std::string& scheme, + gss_OID gss_oid) : scheme_(scheme), gss_oid_(gss_oid), library_(library), @@ -375,10 +377,10 @@ int HttpAuthGSSAPI::GenerateAuthToken(const std::wstring* username, return rv; } - gssapi::gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER; + gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER; input_token.length = decoded_server_auth_token_.length(); input_token.value = const_cast<char *>(decoded_server_auth_token_.data()); - gssapi::gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER; + gss_buffer_desc output_token = GSS_C_EMPTY_BUFFER; int rv = GetNextSecurityToken(spn, &input_token, &output_token); if (rv != OK) return rv; @@ -388,7 +390,7 @@ int HttpAuthGSSAPI::GenerateAuthToken(const std::wstring* username, output_token.length); std::string encode_output; bool ok = base::Base64Encode(encode_input, &encode_output); - gssapi::OM_uint32 minor_status = 0; + OM_uint32 minor_status = 0; library_->release_buffer(&minor_status, &output_token); if (!ok) return ERR_UNEXPECTED; @@ -410,22 +412,22 @@ int HttpAuthGSSAPI::OnFirstRound(const std::wstring* username, } int HttpAuthGSSAPI::GetNextSecurityToken(const std::wstring& spn, - gssapi::gss_buffer_t in_token, - gssapi::gss_buffer_t out_token) { + gss_buffer_t in_token, + gss_buffer_t out_token) { // Create a name for the principal // TODO(cbentzel): Should this be username@spn? What about domain? // TODO(cbentzel): Just do this on the first pass? const GURL spn_url(WideToASCII(spn)); std::string spn_principal = GetHostAndPort(spn_url); - gssapi::gss_buffer_desc spn_buffer = GSS_C_EMPTY_BUFFER; + gss_buffer_desc spn_buffer = GSS_C_EMPTY_BUFFER; spn_buffer.value = const_cast<char *>(spn_principal.data()); spn_buffer.length = spn_principal.size() + 1; - gssapi::OM_uint32 minor_status = 0; - gssapi::gss_name_t principal_name; - gssapi::OM_uint32 major_status = library_->import_name( + OM_uint32 minor_status = 0; + gss_name_t principal_name; + OM_uint32 major_status = library_->import_name( &minor_status, &spn_buffer, - LOCAL_GSS_C_NT_HOSTBASED_SERVICE, + CHROME_GSS_C_NT_HOSTBASED_SERVICE, &principal_name); if (major_status != GSS_S_COMPLETE) { LOG(WARNING) << "Problem importing name. " @@ -437,7 +439,7 @@ int HttpAuthGSSAPI::GetNextSecurityToken(const std::wstring& spn, ScopedName scoped_name(principal_name, library_); // Create a security context. - gssapi::OM_uint32 req_flags = 0; + OM_uint32 req_flags = 0; major_status = library_->init_sec_context( &minor_status, GSS_C_NO_CREDENTIAL, diff --git a/net/http/http_auth_gssapi_posix.h b/net/http/http_auth_gssapi_posix.h index 0eacbf3..4d62614 100644 --- a/net/http/http_auth_gssapi_posix.h +++ b/net/http/http_auth_gssapi_posix.h @@ -21,6 +21,9 @@ namespace net { class HttpRequestInfo; class ProxyInfo; +extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE_X; +extern gss_OID CHROME_GSS_C_NT_HOSTBASED_SERVICE; + // GSSAPILibrary is introduced so unit tests can mock the calls to the GSSAPI // library. The default implementation attempts to load one of the standard // GSSAPI library implementations, then simply passes the arguments on to @@ -33,45 +36,45 @@ class GSSAPILibrary { virtual bool Init() = 0; // These methods match the ones in the GSSAPI library. - virtual gssapi::OM_uint32 import_name( - gssapi::OM_uint32* minor_status, - const gssapi::gss_buffer_t input_name_buffer, - const gssapi::gss_OID input_name_type, - gssapi::gss_name_t* output_name) = 0; - virtual gssapi::OM_uint32 release_name( - gssapi::OM_uint32* minor_status, - gssapi::gss_name_t* input_name) = 0; - virtual gssapi::OM_uint32 release_buffer( - gssapi::OM_uint32* minor_status, - gssapi::gss_buffer_t buffer) = 0; - virtual gssapi::OM_uint32 display_status( - gssapi::OM_uint32* minor_status, - gssapi::OM_uint32 status_value, + virtual OM_uint32 import_name( + OM_uint32* minor_status, + const gss_buffer_t input_name_buffer, + const gss_OID input_name_type, + gss_name_t* output_name) = 0; + virtual OM_uint32 release_name( + OM_uint32* minor_status, + gss_name_t* input_name) = 0; + virtual OM_uint32 release_buffer( + OM_uint32* minor_status, + gss_buffer_t buffer) = 0; + virtual OM_uint32 display_status( + OM_uint32* minor_status, + OM_uint32 status_value, int status_type, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32* message_contex, - gssapi::gss_buffer_t status_string) = 0; - virtual gssapi::OM_uint32 init_sec_context( - gssapi::OM_uint32* minor_status, - const gssapi::gss_cred_id_t initiator_cred_handle, - gssapi::gss_ctx_id_t* context_handle, - const gssapi::gss_name_t target_name, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32 req_flags, - gssapi::OM_uint32 time_req, - const gssapi::gss_channel_bindings_t input_chan_bindings, - const gssapi::gss_buffer_t input_token, - gssapi::gss_OID* actual_mech_type, - gssapi::gss_buffer_t output_token, - gssapi::OM_uint32* ret_flags, - gssapi::OM_uint32* time_rec) = 0; - virtual gssapi::OM_uint32 wrap_size_limit( - gssapi::OM_uint32* minor_status, - const gssapi::gss_ctx_id_t context_handle, + const gss_OID mech_type, + OM_uint32* message_contex, + gss_buffer_t status_string) = 0; + virtual OM_uint32 init_sec_context( + OM_uint32* minor_status, + const gss_cred_id_t initiator_cred_handle, + gss_ctx_id_t* context_handle, + const gss_name_t target_name, + const gss_OID mech_type, + OM_uint32 req_flags, + OM_uint32 time_req, + const gss_channel_bindings_t input_chan_bindings, + const gss_buffer_t input_token, + gss_OID* actual_mech_type, + gss_buffer_t output_token, + OM_uint32* ret_flags, + OM_uint32* time_rec) = 0; + virtual OM_uint32 wrap_size_limit( + OM_uint32* minor_status, + const gss_ctx_id_t context_handle, int conf_req_flag, - gssapi::gss_qop_t qop_req, - gssapi::OM_uint32 req_output_size, - gssapi::OM_uint32* max_input_size) = 0; + gss_qop_t qop_req, + OM_uint32 req_output_size, + OM_uint32* max_input_size) = 0; // Get the default GSSPILibrary instance. The object returned is a singleton // instance, and the caller should not delete it. @@ -86,45 +89,45 @@ class GSSAPISharedLibrary : public GSSAPILibrary { // GSSAPILibrary methods: virtual bool Init(); - virtual gssapi::OM_uint32 import_name( - gssapi::OM_uint32* minor_status, - const gssapi::gss_buffer_t input_name_buffer, - const gssapi::gss_OID input_name_type, - gssapi::gss_name_t* output_name); - virtual gssapi::OM_uint32 release_name( - gssapi::OM_uint32* minor_status, - gssapi::gss_name_t* input_name); - virtual gssapi::OM_uint32 release_buffer( - gssapi::OM_uint32* minor_status, - gssapi::gss_buffer_t buffer); - virtual gssapi::OM_uint32 display_status( - gssapi::OM_uint32* minor_status, - gssapi::OM_uint32 status_value, + virtual OM_uint32 import_name( + OM_uint32* minor_status, + const gss_buffer_t input_name_buffer, + const gss_OID input_name_type, + gss_name_t* output_name); + virtual OM_uint32 release_name( + OM_uint32* minor_status, + gss_name_t* input_name); + virtual OM_uint32 release_buffer( + OM_uint32* minor_status, + gss_buffer_t buffer); + virtual OM_uint32 display_status( + OM_uint32* minor_status, + OM_uint32 status_value, int status_type, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32* message_contex, - gssapi::gss_buffer_t status_string); - virtual gssapi::OM_uint32 init_sec_context( - gssapi::OM_uint32* minor_status, - const gssapi::gss_cred_id_t initiator_cred_handle, - gssapi::gss_ctx_id_t* context_handle, - const gssapi::gss_name_t target_name, - const gssapi::gss_OID mech_type, - gssapi::OM_uint32 req_flags, - gssapi::OM_uint32 time_req, - const gssapi::gss_channel_bindings_t input_chan_bindings, - const gssapi::gss_buffer_t input_token, - gssapi::gss_OID* actual_mech_type, - gssapi::gss_buffer_t output_token, - gssapi::OM_uint32* ret_flags, - gssapi::OM_uint32* time_rec); - virtual gssapi::OM_uint32 wrap_size_limit( - gssapi::OM_uint32* minor_status, - const gssapi::gss_ctx_id_t context_handle, + const gss_OID mech_type, + OM_uint32* message_contex, + gss_buffer_t status_string); + virtual OM_uint32 init_sec_context( + OM_uint32* minor_status, + const gss_cred_id_t initiator_cred_handle, + gss_ctx_id_t* context_handle, + const gss_name_t target_name, + const gss_OID mech_type, + OM_uint32 req_flags, + OM_uint32 time_req, + const gss_channel_bindings_t input_chan_bindings, + const gss_buffer_t input_token, + gss_OID* actual_mech_type, + gss_buffer_t output_token, + OM_uint32* ret_flags, + OM_uint32* time_rec); + virtual OM_uint32 wrap_size_limit( + OM_uint32* minor_status, + const gss_ctx_id_t context_handle, int conf_req_flag, - gssapi::gss_qop_t qop_req, - gssapi::OM_uint32 req_output_size, - gssapi::OM_uint32* max_input_size); + gss_qop_t qop_req, + OM_uint32 req_output_size, + OM_uint32* max_input_size); private: FRIEND_TEST_ALL_PREFIXES(HttpAuthGSSAPIPOSIXTest, GSSAPIStartup); @@ -139,12 +142,12 @@ class GSSAPISharedLibrary : public GSSAPILibrary { base::NativeLibrary gssapi_library_; // Function pointers - gssapi::gss_import_name_type import_name_; - gssapi::gss_release_name_type release_name_; - gssapi::gss_release_buffer_type release_buffer_; - gssapi::gss_display_status_type display_status_; - gssapi::gss_init_sec_context_type init_sec_context_; - gssapi::gss_wrap_size_limit_type wrap_size_limit_; + gss_import_name_type import_name_; + gss_release_name_type release_name_; + gss_release_buffer_type release_buffer_; + gss_display_status_type display_status_; + gss_init_sec_context_type init_sec_context_; + gss_wrap_size_limit_type wrap_size_limit_; }; // TODO(cbentzel): Share code with HttpAuthSSPI. @@ -152,7 +155,7 @@ class HttpAuthGSSAPI { public: HttpAuthGSSAPI(GSSAPILibrary* library, const std::string& scheme, - const gssapi::gss_OID gss_oid); + const gss_OID gss_oid); ~HttpAuthGSSAPI(); bool NeedsIdentity() const; @@ -179,16 +182,16 @@ class HttpAuthGSSAPI { int OnFirstRound(const std::wstring* username, const std::wstring* password); int GetNextSecurityToken(const std::wstring& spn, - gssapi::gss_buffer_t in_token, - gssapi::gss_buffer_t out_token); + gss_buffer_t in_token, + gss_buffer_t out_token); std::string scheme_; std::wstring username_; std::wstring password_; - gssapi::gss_OID gss_oid_; + gss_OID gss_oid_; GSSAPILibrary* library_; std::string decoded_server_auth_token_; - gssapi::gss_ctx_id_t sec_context_; + gss_ctx_id_t sec_context_; }; } // namespace net diff --git a/net/third_party/gssapi/README.chromium b/net/third_party/gssapi/README.chromium index 4777ff3..5261c72 100644 --- a/net/third_party/gssapi/README.chromium +++ b/net/third_party/gssapi/README.chromium @@ -13,8 +13,6 @@ on 11 May 2010. The LICENSE from the header has been copied here. Local Modifications: -There are no local changes to the code itself, other than a -namespace change. Please note that our local changes are -marked with the "BEGIN GOOGLE MODIFICATIONS" comments. +There are no local changes to the code itself. A gssapi.gyp file has been added for building with Chromium. diff --git a/net/third_party/gssapi/gssapi.h b/net/third_party/gssapi/gssapi.h index 8558b6d..45e5020 100644 --- a/net/third_party/gssapi/gssapi.h +++ b/net/third_party/gssapi/gssapi.h @@ -95,10 +95,6 @@ #endif #endif -// BEGIN GOOGLE MODIFICATIONS -namespace gssapi { -// END GOOGLE MODIFICATIONS - EXTERN_C_BEGIN /* @@ -241,16 +237,14 @@ typedef struct gss_channel_bindings_struct { /* * Various Null values */ -// BEGIN GOOGLE MODIFICATIONS -#define GSS_C_NO_NAME ((gssapi::gss_name_t) 0) -#define GSS_C_NO_BUFFER ((gssapi::gss_buffer_t) 0) -#define GSS_C_NO_OID ((gssapi::gss_OID) 0) -#define GSS_C_NO_OID_SET ((gssapi::gss_OID_set) 0) -#define GSS_C_NO_CONTEXT ((gssapi::gss_ctx_id_t) 0) -#define GSS_C_NO_CREDENTIAL ((gssapi::gss_cred_id_t) 0) -#define GSS_C_NO_CHANNEL_BINDINGS ((gssapi::gss_channel_bindings_t) 0) +#define GSS_C_NO_NAME ((gss_name_t) 0) +#define GSS_C_NO_BUFFER ((gss_buffer_t) 0) +#define GSS_C_NO_OID ((gss_OID) 0) +#define GSS_C_NO_OID_SET ((gss_OID_set) 0) +#define GSS_C_NO_CONTEXT ((gss_ctx_id_t) 0) +#define GSS_C_NO_CREDENTIAL ((gss_cred_id_t) 0) +#define GSS_C_NO_CHANNEL_BINDINGS ((gss_channel_bindings_t) 0) #define GSS_C_EMPTY_BUFFER {0, NULL} -// END GOOGLE MODIFICATIONS /* * Some alternate names for a couple of the above @@ -846,9 +840,5 @@ GSS_CALLCONV GSS_FUNC(gss_duplicate_name) EXTERN_C_END -// BEGIN GOOGLE MODIFICATIONS -} // namespace gssapi -// END GOOGLE MODIFICATIONS - #endif /* GSSAPI_H_ */ |