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

Unified Diff: net/http/http_auth_handler_ntlm.h

Issue 2904633002: Replace NTLMv1 implementation with a functionally equivalent one.
Patch Set: Cleanup Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: net/http/http_auth_handler_ntlm.h
diff --git a/net/http/http_auth_handler_ntlm.h b/net/http/http_auth_handler_ntlm.h
index fed6303f834f0d1e7980a18afe10900691b14569..9067c7e228aee57543a5c2f2d8ece1fdfacb54cb 100644
--- a/net/http/http_auth_handler_ntlm.h
+++ b/net/http/http_auth_handler_ntlm.h
@@ -23,6 +23,8 @@
#include <windows.h>
#include <security.h>
#include "net/http/http_auth_sspi_win.h"
+#elif defined(NTLM_PORTABLE)
+#include "net/ntlm/ntlm_client.h"
#endif
#include <string>
@@ -142,16 +144,15 @@ class NET_EXPORT_PRIVATE HttpAuthHandlerNTLM : public HttpAuthHandler {
// Given an input token received from the server, generate the next output
// token to be sent to the server.
- int GetNextToken(const void* in_token,
- uint32_t in_token_len,
- void** out_token,
- uint32_t* out_token_len);
+ ntlm::Buffer GetNextToken(const ntlm::Buffer& in_token);
// Create an NTLM SPN to identify the |origin| server.
static std::string CreateSPN(const GURL& origin);
#if defined(NTLM_SSPI)
HttpAuthSSPI auth_sspi_;
+#elif defined(NTLM_PORTABLE)
+ ntlm::NtlmClient ntlm_client_;
#endif
#if defined(NTLM_PORTABLE)

Powered by Google App Engine
This is Rietveld 408576698