Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9193)

Issue 211900043: Revision of session hash patch. Needs first review.

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 1 month ago by ekr-rietveld
Modified:
8 years, 10 months ago
Reviewers:
mt, wtc, wtc1
Visibility:
Public.

Description

Revision of session hash patch. Needs first review.

Patch Set 1 #

Total comments: 15

Patch Set 2 : Revised #

Total comments: 14

Patch Set 3 : Address self-review #

Total comments: 69

Patch Set 4 : Revised per MT's comments (not ready for review) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+995 lines, -109 lines) Patch
M cmd/selfserv/selfserv.c View 1 2 3 4 chunks +15 lines, -3 lines 0 comments Download
M cmd/tstclnt/tstclnt.c View 1 6 chunks +17 lines, -3 lines 0 comments Download
M coreconf/rules.mk View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M external_tests/ssl_gtest/Makefile View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A external_tests/ssl_gtest/libssl_internals.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A external_tests/ssl_gtest/libssl_internals.c View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/manifest.mn View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/ssl_loopback_unittest.cc View 1 2 3 3 chunks +197 lines, -2 lines 0 comments Download
M external_tests/ssl_gtest/tls_agent.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_agent.cc View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_connect.h View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/tls_connect.cc View 1 2 3 4 chunks +20 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/tls_filter.h View 1 1 chunk +15 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_filter.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_parser.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M lib/softoken/pkcs11c.c View 1 1 chunk +98 lines, -0 lines 0 comments Download
M lib/ssl/SSLerrs.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M lib/ssl/ssl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M lib/ssl/ssl3con.c View 1 2 3 20 chunks +342 lines, -76 lines 0 comments Download
M lib/ssl/ssl3ecc.c View 1 1 chunk +8 lines, -8 lines 0 comments Download
M lib/ssl/ssl3ext.c View 1 2 3 8 chunks +109 lines, -0 lines 0 comments Download
M lib/ssl/sslerr.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M lib/ssl/sslimpl.h View 1 2 3 4 chunks +7 lines, -0 lines 0 comments Download
M lib/ssl/sslinfo.c View 1 chunk +1 line, -0 lines 0 comments Download
M lib/ssl/sslsnce.c View 3 chunks +5 lines, -3 lines 0 comments Download
M lib/ssl/sslsock.c View 1 2 3 5 chunks +14 lines, -0 lines 0 comments Download
M lib/ssl/sslt.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M lib/util/pkcs11n.h View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 13
ekr-rietveld
Here is a version that I think is ready for a first review.
9 years, 1 month ago (2015-03-04 21:22:33 UTC) #1
ekr-rietveld
Note. This needs Richard Barnes's patch #1.
9 years, 1 month ago (2015-03-04 21:24:12 UTC) #2
mt
LGTM (not)
9 years, 1 month ago (2015-03-04 21:26:19 UTC) #3
ekr-rietveld
On 2015/03/04 21:26:19, mt wrote: > LGTM > > (not) I guess we know it ...
9 years, 1 month ago (2015-03-04 21:26:34 UTC) #4
mt
I've reviewed the tests and those look good. I'll have a look at the other ...
9 years, 1 month ago (2015-03-04 22:12:14 UTC) #5
mt
I'm not sure about some of the code shuffling that is going on and the ...
9 years, 1 month ago (2015-03-04 22:47:16 UTC) #6
ekr-rietveld
MT, WTC, why don't oyu hold on till I try the refactor MT suggests. https://codereview.appspot.com/211900043/diff/1/lib/ssl/ssl3con.c ...
9 years, 1 month ago (2015-03-04 23:01:33 UTC) #7
wtc1
Hi Eric, I forgot to review this CL. Sorry. What's the status of the CL?
9 years ago (2015-04-07 18:45:21 UTC) #8
ekr-rietveld
self-review https://codereview.appspot.com/211900043/diff/1/cmd/tstclnt/tstclnt.c File cmd/tstclnt/tstclnt.c (right): https://codereview.appspot.com/211900043/diff/1/cmd/tstclnt/tstclnt.c#newcode136 cmd/tstclnt/tstclnt.c:136: channel.extendedMasterSecretUsed ? "Yes": "No"); On 2015/03/04 22:12:14, mt ...
8 years, 11 months ago (2015-06-03 18:43:05 UTC) #9
ekr-rietveld
MT can you please take a look at this patch. https://codereview.appspot.com/211900043/diff/20001/external_tests/ssl_gtest/ssl_loopback_unittest.cc File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right): https://codereview.appspot.com/211900043/diff/20001/external_tests/ssl_gtest/ssl_loopback_unittest.cc#newcode18 ...
8 years, 11 months ago (2015-06-03 20:10:43 UTC) #10
mt
I'm not sure what the base is here, but I think that the diff I ...
8 years, 10 months ago (2015-06-12 00:16:04 UTC) #11
ekr-rietveld
If you'd really like that refactor, we should talk 1:1. https://codereview.appspot.com/211900043/diff/40001/cmd/selfserv/selfserv.c File cmd/selfserv/selfserv.c (right): https://codereview.appspot.com/211900043/diff/40001/cmd/selfserv/selfserv.c#newcode2207 ...
8 years, 10 months ago (2015-06-12 13:36:08 UTC) #12
ekr-rietveld
8 years, 10 months ago (2015-06-22 22:41:55 UTC) #13
https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right):

https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:297:
ExpectExtendedMasterSecret(true);
On 2015/06/12 13:36:07, ekr-webrtc wrote:
> On 2015/06/12 00:16:02, mt wrote:
> > Maybe you can add a single call for these three calls.
> 
> Sure.

Done.

https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/tls_agent.cc (right):

https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/tls_agent.cc:190: << " expected=" << expected <<
std::endl;
On 2015/06/12 00:16:02, mt wrote:
> The cerr call probably isn't needed now that this is working.

Done.

https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/tls_connect.h (right):

https://codereview.appspot.com/211900043/diff/40001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/tls_connect.h:68: void CheckExtendedMasterSecret();
Made private.

On 2015/06/12 13:36:07, ekr-webrtc wrote:
> On 2015/06/12 00:16:03, mt wrote:
> > Do you need this function to be protected?
> 
> As opposed to private you mean?

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c
File lib/ssl/ssl3con.c (right):

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3573: 
On 2015/06/12 00:16:03, mt wrote:
> Extra line?

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3591: +            ssl3_ExtensionNegotiated(ss,
ssl_extended_master_secret_xtn);
On 2015/06/12 13:36:08, ekr-webrtc wrote:
> On 2015/06/12 00:16:04, mt wrote:
> > Extraneous '+'.
> 
> Merge error.

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3750: PRBool isTLS12=
On 2015/06/12 00:16:04, mt wrote:
> s/2=/2 =/

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3750: PRBool isTLS12=
On 2015/06/12 00:16:04, mt wrote:
> s/2=/2 =/

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3754: unsigned char extended_label[] = "extended master
secret";
On 2015/06/12 13:36:07, ekr-webrtc wrote:
> On 2015/06/12 00:16:03, mt wrote:
> > Does this need to be on the stack like this?
> 
> None.

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3799: keyFlags      = CKF_SIGN | CKF_VERIFY;
On 2015/06/12 00:16:04, mt wrote:
> Const this.

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:3817: if (pms != NULL) {
On 2015/06/12 13:36:07, ekr-webrtc wrote:
> On 2015/06/12 00:16:04, mt wrote:
> > These tests aren't consistent.  if (pms) or if (pms != NULL)
> 
> Yeah, agreed.

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:4878: }
On 2015/06/12 00:16:03, mt wrote:
> This code now appears in all four branches of this function.  Hoist it right
up.

It's actually two different variants and I think it's easier as-is.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3con.c#newcode...
lib/ssl/ssl3con.c:6658: handshakes.
On 2015/06/12 00:16:03, mt wrote:
> We should have a bug number for (optionally) disabling resumption for !EMS.  I
> can't imagine wanting to land it for a while yet, but nevertheless it would be
> good to have a record here.

Done.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3ext.c
File lib/ssl/ssl3ext.c (right):

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/ssl3ext.c#newcode...
lib/ssl/ssl3ext.c:2617: return 0;
On 2015/06/12 00:16:04, mt wrote:
> I'd move this up and avoid checking maxBytes against extension_length twice. 
> BTW, mixing camel case and underscores is not-awesome.

I don't think you can do that, because before you only check against
append.

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/sslsock.c
File lib/ssl/sslsock.c (right):

https://codereview.appspot.com/211900043/diff/40001/lib/ssl/sslsock.c#newcode86
lib/ssl/sslsock.c:86: PR_FALSE    /* enableEtendedMS    */
On 2015/06/12 00:16:04, mt wrote:
> PR_TRUE and check spelling
See needinfo on bug.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b