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

Issue 2879353002: Add a buffer reader/writer for NTLM. (Closed)

Created:
3 years, 7 months ago by zentaro
Modified:
3 years, 5 months ago
Reviewers:
asanka, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a buffer reader/writer for NTLM. These will be used in new implementation of NTLMv2 and consolidate the ad hoc buffer manipulation in the new and existing code. Additionally useful as helpers for generating/validating data for unit tests. BUG=chromium:22532 TEST=builds and tests pass Review-Url: https://codereview.chromium.org/2879353002 Cr-Commit-Position: refs/heads/master@{#486565} Committed: https://chromium.googlesource.com/chromium/src/+/b747956839b2d8621c5267c44a9fe7f8765cc2d6

Patch Set 1 #

Patch Set 2 : Accidentally left some dead code. #

Patch Set 3 : More helper functions #

Patch Set 4 : More helpers #

Patch Set 5 : More tests #

Patch Set 6 : String piece constructor #

Patch Set 7 : Fix incorrect out param convention #

Patch Set 8 : Enough implementation for ntlm v1 #

Patch Set 9 : Cleanup, const, docs #

Patch Set 10 : Cleanup #

Patch Set 11 : Add a buffer reader/writer for NTLM. #

Total comments: 35

Patch Set 12 : Add a buffer reader/writer for NTLM. #

Patch Set 13 : Refactoring and review feedback #

Patch Set 14 : Missing comments #

Patch Set 15 : Rebase and make security buffer a struct #

Patch Set 16 : More unit tests #

Patch Set 17 : Add a buffer reader/writer for NTLM. #

Total comments: 105

Patch Set 18 : Review feedback #

Patch Set 19 : Renaming and some more const in test buffers #

Patch Set 20 : More cleanup #

Patch Set 21 : Rebase #

Total comments: 16

Patch Set 22 : Review feedback #

Patch Set 23 : Typo #

Patch Set 24 : Add additional ntlm reference to comments #

Total comments: 6

Patch Set 25 : Review feedback. Next CL will move files. #

Patch Set 26 : Move implementation to //net/ntlm #

Patch Set 27 : Add a buffer reader/writer for NTLM. #

Patch Set 28 : Remove dead code #

Patch Set 29 : EXPECT_* -> ASSERT_* #

Total comments: 6

Patch Set 30 : Feedback and rebase #

Patch Set 31 : Rename header #

Patch Set 32 : Add a buffer reader/writer for NTLM. #

Total comments: 63

Patch Set 33 : Review feedback #

Patch Set 34 : Nits #

Patch Set 35 : Cleanup comment #

Patch Set 36 : Add a buffer reader/writer for NTLM. #

Patch Set 37 : Move build config back to net #

Patch Set 38 : Fix constant naming convention #

Patch Set 39 : Fix naming conventions #

Patch Set 40 : Fix include guard #

Patch Set 41 : Update build -= not += #

Patch Set 42 : Remove ReleaseBufferPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1421 lines, -0 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 4 chunks +24 lines, -0 lines 0 comments Download
A net/ntlm/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +6 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_reader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +191 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_reader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +179 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +367 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_writer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +177 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +152 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_buffer_writer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +235 lines, -0 lines 0 comments Download
A net/ntlm/ntlm_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +90 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 58 (31 generated)
zentaro
On 2017/05/15 20:30:11, zentaro wrote: > mailto:zentaro@chromium.org changed reviewers: > + mailto:rsleevi@chromium.org PTAL
3 years, 7 months ago (2017-05-15 20:30:20 UTC) #3
zentaro
Hold off on reviewing this one for a little bit. Making it more complete and ...
3 years, 7 months ago (2017-05-19 20:29:02 UTC) #4
Ryan Sleevi
On 2017/05/19 20:29:02, zentaro wrote: > Hold off on reviewing this one for a little ...
3 years, 6 months ago (2017-05-30 17:30:17 UTC) #5
Ryan Sleevi
Lots of first-pass feedback. Given how mirrored the two files are, I focused on the ...
3 years, 6 months ago (2017-05-30 19:02:23 UTC) #6
zentaro
PTAAL https://codereview.chromium.org/2879353002/diff/200001/net/http/ntlm_buffer_reader.cc File net/http/ntlm_buffer_reader.cc (right): https://codereview.chromium.org/2879353002/diff/200001/net/http/ntlm_buffer_reader.cc#newcode120 net/http/ntlm_buffer_reader.cc:120: #if IS_BIG_ENDIAN On 2017/05/30 19:02:22, Ryan Sleevi wrote: ...
3 years, 6 months ago (2017-06-05 17:28:45 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h File net/http/ntlm.h (right): https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h#newcode1 net/http/ntlm.h:1: // Copyright (c) 2017 The Chromium Authors. All rights ...
3 years, 6 months ago (2017-06-08 18:36:34 UTC) #8
asanka
https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h File net/http/ntlm.h (right): https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h#newcode6 net/http/ntlm.h:6: #define NET_BASE_NTLM_H_ Nit: I'd suggest using the ntlm.h header ...
3 years, 6 months ago (2017-06-08 18:44:58 UTC) #10
asanka
https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm_buffer_reader_unittest.cc File net/http/ntlm_buffer_reader_unittest.cc (right): https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm_buffer_reader_unittest.cc#newcode34 net/http/ntlm_buffer_reader_unittest.cc:34: buf[0] = expected & 0xff; Nit: it seems easier ...
3 years, 6 months ago (2017-06-08 19:40:10 UTC) #11
asanka
https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm_buffer_reader_unittest.cc File net/http/ntlm_buffer_reader_unittest.cc (right): https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm_buffer_reader_unittest.cc#newcode178 net/http/ntlm_buffer_reader_unittest.cc:178: } For UnicodeString reads and writes, let's add some ...
3 years, 6 months ago (2017-06-08 19:41:52 UTC) #12
asanka
Ok. I'm done for this round :-) So, a high level comment before we go ...
3 years, 6 months ago (2017-06-08 19:45:50 UTC) #13
zentaro
On 2017/06/08 19:45:50, asanka wrote: > Ok. I'm done for this round :-) > > ...
3 years, 6 months ago (2017-06-12 23:11:38 UTC) #14
zentaro
PTAL: As discuss the file moving will happen later. https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h File net/http/ntlm.h (right): https://codereview.chromium.org/2879353002/diff/320001/net/http/ntlm.h#newcode1 net/http/ntlm.h:1: ...
3 years, 6 months ago (2017-06-12 23:12:08 UTC) #15
asanka
Pretty close. I think once we figure out the buffer ownership stuff for the writer ...
3 years, 6 months ago (2017-06-16 03:21:29 UTC) #16
zentaro
Let me know if we're ready to do the code move to a new directory. ...
3 years, 6 months ago (2017-06-21 00:38:47 UTC) #17
asanka
LGTM. Let's proceed. I'm still of the opinion that the buffer writer shouldn't take on ...
3 years, 6 months ago (2017-06-23 17:59:14 UTC) #18
asanka
by "proceed" I meant with the directory move. We still need to make sure the ...
3 years, 6 months ago (2017-06-23 18:11:40 UTC) #19
asanka
https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm_buffer_writer.cc File net/http/ntlm_buffer_writer.cc (right): https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm_buffer_writer.cc#newcode17 net/http/ntlm_buffer_writer.cc:17: buffer_.reset(new uint8_t[buffer_len]); buffer_ now contains a default initialized array. ...
3 years, 6 months ago (2017-06-23 20:05:33 UTC) #20
zentaro
On 2017/06/23 20:05:33, asanka wrote: > https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm_buffer_writer.cc > File net/http/ntlm_buffer_writer.cc (right): > > https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm_buffer_writer.cc#newcode17 > ...
3 years, 5 months ago (2017-06-26 14:34:13 UTC) #21
zentaro
https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm.h File net/http/ntlm.h (right): https://codereview.chromium.org/2879353002/diff/460001/net/http/ntlm.h#newcode10 net/http/ntlm.h:10: On 2017/06/23 17:59:14, asanka wrote: > #include <type_traits> Done. ...
3 years, 5 months ago (2017-06-26 14:34:26 UTC) #22
asanka
https://codereview.chromium.org/2879353002/diff/560001/net/ntlm/BUILD.gn File net/ntlm/BUILD.gn (right): https://codereview.chromium.org/2879353002/diff/560001/net/ntlm/BUILD.gn#newcode15 net/ntlm/BUILD.gn:15: ] Eventually we can add a 'public' section here ...
3 years, 5 months ago (2017-07-06 03:36:02 UTC) #23
zentaro
https://codereview.chromium.org/2879353002/diff/560001/net/ntlm/BUILD.gn File net/ntlm/BUILD.gn (right): https://codereview.chromium.org/2879353002/diff/560001/net/ntlm/BUILD.gn#newcode15 net/ntlm/BUILD.gn:15: ] On 2017/07/06 03:36:01, asanka wrote: > Eventually we ...
3 years, 5 months ago (2017-07-06 20:45:20 UTC) #24
Ryan Sleevi
You know things are good when we're in the comment-nit phase :) LGTM with lots ...
3 years, 5 months ago (2017-07-10 15:07:57 UTC) #33
zentaro
https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/OWNERS File net/ntlm/OWNERS (right): https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/OWNERS#newcode1 net/ntlm/OWNERS:1: # COMPONENT: Internals>Network>Auth On 2017/07/10 15:07:56, Ryan Sleevi wrote: ...
3 years, 5 months ago (2017-07-11 14:00:30 UTC) #34
asanka
https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/ntlm_buffer_reader.h File net/ntlm/ntlm_buffer_reader.h (right): https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/ntlm_buffer_reader.h#newcode96 net/ntlm/ntlm_buffer_reader.h:96: bool ReadBytesFrom(const SecurityBuffer& sec_buf, Should note that this method ...
3 years, 5 months ago (2017-07-11 15:19:16 UTC) #35
zentaro
https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/ntlm_buffer_reader.h File net/ntlm/ntlm_buffer_reader.h (right): https://codereview.chromium.org/2879353002/diff/620001/net/ntlm/ntlm_buffer_reader.h#newcode96 net/ntlm/ntlm_buffer_reader.h:96: bool ReadBytesFrom(const SecurityBuffer& sec_buf, On 2017/07/11 15:19:16, asanka wrote: ...
3 years, 5 months ago (2017-07-11 20:19:53 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879353002/810001
3 years, 5 months ago (2017-07-14 00:11:26 UTC) #53
commit-bot: I haz the power
3 years, 5 months ago (2017-07-14 00:59:24 UTC) #58
Message was sent while issue was closed.
Committed patchset #42 (id:810001) as
https://chromium.googlesource.com/chromium/src/+/b747956839b2d8621c5267c44a9f...

Powered by Google App Engine
This is Rietveld 408576698