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

Side by Side 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, 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
« net/http/ntlm_message.h ('K') | « net/http/ntlm_message.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/http/ntlm_message.h"
6 #include "base/macros.h"
7
8 namespace net {
9
10 const uint8_t NtlmMessage::SIGNATURE[] = "NTLMSSP";
11 const size_t NtlmMessage::SIGNATURE_LEN = arraysize(SIGNATURE);
12 const size_t NtlmMessage::SECURITY_BUFFER_LEN =
13 (2 * sizeof(uint16_t)) + sizeof(uint32_t);
14 const size_t NtlmMessage::NEGOTIATE_MESSAGE_LEN = 32;
15 const size_t NtlmMessage::RESPONSE_V1_LEN = 24;
16 const size_t NtlmMessage::CHALLENGE_LEN = 8;
17 const size_t NtlmMessage::NTLM_HASH_LEN = 16;
18
19 const uint32_t NtlmMessage::NEGOTIATE_MESSAGE_FLAGS =
20 NTLMSSP_NEGOTIATE_UNICODE | NTLMSSP_NEGOTIATE_OEM | NTLMSSP_REQUEST_TARGET |
21 NTLMSSP_NEGOTIATE_NTLM | NTLMSSP_NEGOTIATE_ALWAYS_SIGN |
22 NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY;
23
24 } // namespace net
OLDNEW
« 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