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

Unified Diff: net/ntlm/ntlm_constants.h

Issue 2873673002: Add unit tests for NTLMv1 portable implementation (Closed)
Patch Set: Merge build config back to net 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/ntlm/ntlm_constants.h
diff --git a/net/ntlm/ntlm_constants.h b/net/ntlm/ntlm_constants.h
index 086184dc810577b52cf69aefa43bec5a55e91d40..cdfb71a80218690b5c4e3e8503f4d7e8ecb676bf 100644
--- a/net/ntlm/ntlm_constants.h
+++ b/net/ntlm/ntlm_constants.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_BASE_NTLM_H_
-#define NET_BASE_NTLM_H_
+#ifndef NET_BASE_NTLM_CONSTANTS_H_
+#define NET_BASE_NTLM_CONSTANTS_H_
#include <stddef.h>
#include <stdint.h>
@@ -75,6 +75,7 @@ static constexpr size_t SIGNATURE_LEN = arraysize(SIGNATURE);
static constexpr size_t SECURITY_BUFFER_LEN =
(2 * sizeof(uint16_t)) + sizeof(uint32_t);
static constexpr size_t NEGOTIATE_MESSAGE_LEN = 32;
+static constexpr size_t CHALLENGE_HEADER_LEN = 32;
static constexpr size_t RESPONSE_V1_LEN = 24;
static constexpr size_t CHALLENGE_LEN = 8;
static constexpr size_t NTLM_HASH_LEN = 16;
@@ -87,4 +88,4 @@ static constexpr NegotiateFlags NEGOTIATE_MESSAGE_FLAGS =
} // namespace ntlm
} // namespace net
-#endif // NET_BASE_NTLM_H_
+#endif // NET_BASE_NTLM_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698