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

Unified Diff: net/http/http_auth_handler_ntlm_portable.cc

Issue 418533002: Explain the three values written by WriteSecBuf, in particular, why the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_ntlm_portable.cc
diff --git a/net/http/http_auth_handler_ntlm_portable.cc b/net/http/http_auth_handler_ntlm_portable.cc
index 035a6dc80170c091536c615c49c013332ce13b73..237e33a9825efe6a9885bdb2abfe286fa673e558 100644
--- a/net/http/http_auth_handler_ntlm_portable.cc
+++ b/net/http/http_auth_handler_ntlm_portable.cc
@@ -195,8 +195,12 @@ static void* WriteSecBuf(void* buf, uint16 length, uint32 offset) {
length = SWAP16(length);
offset = SWAP32(offset);
#endif
+ // Len: 2 bytes.
buf = WriteBytes(buf, &length, sizeof(length));
+ // MaxLen: 2 bytes. The sender should set it to the value of Len. The
+ // recipient must ignore it.
buf = WriteBytes(buf, &length, sizeof(length));
+ // BufferOffset: 4 bytes.
buf = WriteBytes(buf, &offset, sizeof(offset));
return buf;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698