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

Unified Diff: net/http/ntlm_message.cc

Issue 2879353002: Add a buffer reader/writer for NTLM. (Closed)
Patch Set: Add a buffer reader/writer for NTLM. Created 3 years, 7 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
« net/http/ntlm_message.h ('K') | « net/http/ntlm_message.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/ntlm_message.cc
diff --git a/net/http/ntlm_message.cc b/net/http/ntlm_message.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a97db610396ff11bf9dcfd09034a5f8cf9ba0dd7
--- /dev/null
+++ b/net/http/ntlm_message.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/http/ntlm_message.h"
+#include "base/macros.h"
+
+namespace net {
+
+const uint8_t NtlmMessage::SIGNATURE[] = "NTLMSSP";
+const size_t NtlmMessage::SIGNATURE_LEN = arraysize(SIGNATURE);
+const size_t NtlmMessage::SECURITY_BUFFER_LEN =
+ (2 * sizeof(uint16_t)) + sizeof(uint32_t);
+const size_t NtlmMessage::NEGOTIATE_MESSAGE_LEN = 32;
+const size_t NtlmMessage::RESPONSE_V1_LEN = 24;
+const size_t NtlmMessage::CHALLENGE_LEN = 8;
+const size_t NtlmMessage::NTLM_HASH_LEN = 16;
+
+const uint32_t NtlmMessage::NEGOTIATE_MESSAGE_FLAGS =
+ NTLMSSP_NEGOTIATE_UNICODE | NTLMSSP_NEGOTIATE_OEM | NTLMSSP_REQUEST_TARGET |
+ NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_ALWAYS_SIGN |
+ NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY;
+
+} // namespace net
« net/http/ntlm_message.h ('K') | « net/http/ntlm_message.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698