diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 23:38:26 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 23:38:26 +0000 |
commit | 7212c079a8a86adf0756cd0fcf269228719a79f7 (patch) | |
tree | 08578d08f5d98d21170e5a64c4c3c9ca5013253d /net/http | |
parent | be3cf304476caa71bee6ee159c32b8590ace3610 (diff) | |
download | chromium_src-7212c079a8a86adf0756cd0fcf269228719a79f7.zip chromium_src-7212c079a8a86adf0756cd0fcf269228719a79f7.tar.gz chromium_src-7212c079a8a86adf0756cd0fcf269228719a79f7.tar.bz2 |
Explain the three values written by WriteSecBuf, in particular, why the
first two values are the same.
R=rsleevi@chromium.org, glider@chromium.org
BUG=none
Review URL: https://codereview.chromium.org/418533002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285407 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r-- | net/http/http_auth_handler_ntlm_portable.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_auth_handler_ntlm_portable.cc b/net/http/http_auth_handler_ntlm_portable.cc index 035a6dc..237e33a 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; } |