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

Issue 300370043: Merged draft-13 patch

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 10 months ago by ekr-rietveld
Modified:
7 years, 10 months ago
Reviewers:
mt
Visibility:
Public.

Description

Merged draft-13 patch

Patch Set 1 #

Patch Set 2 : Revised draft-13 merged patchset #

Total comments: 79

Patch Set 3 : MT comments #

Total comments: 25

Patch Set 4 : Patch set 4. Hopefully ready for landing #

Total comments: 2

Patch Set 5 : Updates to error code #

Total comments: 28
Unified diffs Side-by-side diffs Delta from patch set Stats (+2301 lines, -849 lines) Patch
M external_tests/ssl_gtest/libssl_internals.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/libssl_internals.c View 1 2 3 2 chunks +65 lines, -0 lines 5 comments Download
M external_tests/ssl_gtest/ssl_agent_unittest.cc View 1 2 6 chunks +148 lines, -24 lines 0 comments Download
M external_tests/ssl_gtest/ssl_loopback_unittest.cc View 1 2 3 4 8 chunks +148 lines, -6 lines 15 comments Download
M external_tests/ssl_gtest/tls_agent.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_agent.cc View 1 2 3 chunks +24 lines, -1 line 0 comments Download
M external_tests/ssl_gtest/tls_connect.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M external_tests/ssl_gtest/tls_connect.cc View 1 2 3 5 chunks +63 lines, -3 lines 0 comments Download
M external_tests/ssl_gtest/tls_hkdf_unittest.cc View 1 3 chunks +41 lines, -10 lines 0 comments Download
M lib/ssl/SSLerrs.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M lib/ssl/ssl.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M lib/ssl/ssl3con.c View 1 2 32 chunks +134 lines, -92 lines 0 comments Download
M lib/ssl/ssl3ecc.c View 1 2 4 chunks +8 lines, -10 lines 0 comments Download
M lib/ssl/ssl3ext.c View 1 2 20 chunks +246 lines, -45 lines 0 comments Download
M lib/ssl/ssl3prot.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M lib/ssl/sslerr.h View 1 chunk +2 lines, -0 lines 0 comments Download
M lib/ssl/sslimpl.h View 1 13 chunks +43 lines, -12 lines 0 comments Download
M lib/ssl/sslinfo.c View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M lib/ssl/sslsecur.c View 1 2 3 chunks +16 lines, -4 lines 0 comments Download
M lib/ssl/sslsock.c View 5 chunks +15 lines, -3 lines 0 comments Download
M lib/ssl/sslt.h View 1 2 3 chunks +10 lines, -3 lines 0 comments Download
M lib/ssl/tls13con.h View 3 chunks +5 lines, -3 lines 0 comments Download
M lib/ssl/tls13con.c View 1 2 3 74 chunks +1240 lines, -627 lines 8 comments Download
M lib/ssl/tls13hkdf.c View 1 2 3 6 chunks +33 lines, -4 lines 0 comments Download

Messages

Total messages: 12
ekr-rietveld
Things are starting to get annoying with a lot of patches in flight. Here is ...
7 years, 10 months ago (2016-06-10 04:16:57 UTC) #1
ekr-rietveld
P.S. Sorry about it being a new issue, but like I said, confusing.
7 years, 10 months ago (2016-06-10 04:17:23 UTC) #2
ekr-rietveld
MT, PTAL
7 years, 10 months ago (2016-06-20 20:20:44 UTC) #3
mt
I'm not super-happy with the tests, but it looks like the coverage is OK. https://codereview.appspot.com/300370043/diff/20001/external_tests/ssl_gtest/libssl_internals.c ...
7 years, 10 months ago (2016-06-21 07:27:33 UTC) #4
ekr-rietveld
https://codereview.appspot.com/300370043/diff/20001/external_tests/ssl_gtest/libssl_internals.c File external_tests/ssl_gtest/libssl_internals.c (right): https://codereview.appspot.com/300370043/diff/20001/external_tests/ssl_gtest/libssl_internals.c#newcode155 external_tests/ssl_gtest/libssl_internals.c:155: PR_FALSE; On 2016/06/21 07:27:31, mt wrote: > You need ...
7 years, 10 months ago (2016-06-21 20:01:27 UTC) #5
mt
LGTM The tests look much nicer, thanks for doing that. I recommend running clang-format, even ...
7 years, 10 months ago (2016-06-24 01:45:55 UTC) #6
ekr-rietveld
MT, this probably needs one more pass because I made significant changes to Finished handling ...
7 years, 10 months ago (2016-06-25 02:41:10 UTC) #7
mt
LGTM Mostly just nits. A little more testing would be good on the case where ...
7 years, 10 months ago (2016-06-27 00:54:21 UTC) #8
ekr-rietveld
When you asked for more tests did you just mean continuing and looking for the ...
7 years, 10 months ago (2016-06-27 01:28:23 UTC) #9
mt
On 2016/06/27 01:28:23, ekr-webrtc wrote: > When you asked for more tests did you just ...
7 years, 10 months ago (2016-06-27 01:40:11 UTC) #10
ekr-rietveld
On 2016/06/27 01:40:11, mt wrote: > On 2016/06/27 01:28:23, ekr-webrtc wrote: > > When you ...
7 years, 10 months ago (2016-06-27 02:11:12 UTC) #11
ekr-rietveld
7 years, 10 months ago (2016-06-27 16:25:08 UTC) #12
Landed as: https://hg.mozilla.org/projects/nss/rev/de16ad00f641

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/libssl_internals.c (right):

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/libssl_internals.c:189: PRBool
SSLInt_DamageEarlyTrafficSecret(PRFileDesc *fd)
On 2016/06/27 01:28:23, ekr-webrtc wrote:
> On 2016/06/27 00:54:22, mt wrote:
> > This runs the same code as the other function.
> 
> Do you just mean the null key creation? I can refactor that out. 
> 
> Note that it stomps a different key.

offsetof ftw

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
File external_tests/ssl_gtest/ssl_loopback_unittest.cc (right):

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1113:
server_->CheckErrorCode(SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE);
On 2016/06/27 00:54:22, mt wrote:
> I think that you should continue and look for an alert from the server.

Done.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1116: 
On 2016/06/27 00:54:22, mt wrote:
> extra blank line

Done.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1130: if (ct_ == record_) {
On 2016/06/27 00:54:22, mt wrote:
> Did you want to make the counter start from zero?

I thought it would conceptually easier to have it start from one but I guess we
do zero elsewhere.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1147: int ct_;
On 2016/06/27 00:54:22, mt wrote:
> counter_

Done.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1158: 1,
On 2016/06/27 00:54:22, mt wrote:
> This is the ServerHello. A comment to that effect might help.

Done.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1174: 1,
On 2016/06/27 00:54:22, mt wrote:
> ClientHello

Done.

https://codereview.appspot.com/300370043/diff/80001/external_tests/ssl_gtest/...
external_tests/ssl_gtest/ssl_loopback_unittest.cc:1253: class BeforeFinished :
public TlsRecordFilter {
On 2016/06/27 00:54:22, mt wrote:
> So... The tests that depend on this could be refactored to use AfterRecordN. 
Is
> the thinking that that basing decisions on the content type is more robust and
> that this is better left as-is for that reason?

I didn't really think it through, but yes, I think that's better. I avoid this
counting where I can.

https://codereview.appspot.com/300370043/diff/80001/lib/ssl/tls13con.c
File lib/ssl/tls13con.c (right):

https://codereview.appspot.com/300370043/diff/80001/lib/ssl/tls13con.c#newcod...
lib/ssl/tls13con.c:498: if (!ss->sec.isServer) {
On 2016/06/27 00:54:22, mt wrote:
> nit: invert check

Done.

https://codereview.appspot.com/300370043/diff/80001/lib/ssl/tls13con.c#newcod...
lib/ssl/tls13con.c:503: 
On 2016/06/27 00:54:22, mt wrote:
> extra blank line

Done.

https://codereview.appspot.com/300370043/diff/80001/lib/ssl/tls13con.c#newcod...
lib/ssl/tls13con.c:1010: SECEqual) {
On 2016/06/27 00:54:22, mt wrote:
> SECEqual should fit on the previous line
Sign in to reply to this message.

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