Record layer separation
Categories
(NSS :: Libraries, enhancement)
Tracking
(Not tracked)
People
(Reporter: mt, Assigned: mt)
References
Details
Attachments
(6 files)
46 bytes,
text/x-phabricator-request
|
ekr
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
ekr
:
review+
|
Details | Review |
46 bytes,
text/x-phabricator-request
|
Details | Review | |
46 bytes,
text/x-phabricator-request
|
ekr
:
review+
|
Details | Review |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
Assignee | ||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
remote: https://hg.mozilla.org/projects/nss/rev/1a1e0017c77664c7e5e2867a21404b77a9ea97e4
remote: https://hg.mozilla.org/projects/nss/rev/4f9d8e9f0b5c1e2806061c2bc848c0618056d57a
remote: https://hg.mozilla.org/projects/nss/rev/c1a1ee048c07fef6ef889e5ff459ddbda8da0273
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Turns out that there were two errors that made my life using SSL_RecordLayerData hard:
-
SSL_ForceHandshake was returning SECFailure/PR_WOULD_BLOCK_ERROR when the record layer was replaced, even when the handshake was complete. This was being obscured in the tests by the fact that we mark sockets as complete through both the callback and SSL_ForceHandshake. I didn't change that aspect of the tests because different tests rely on that being the case. I don't have a good strategy for dealing with that, but I will continue to think on it.
-
SSL_RecordLayerData was returning SECFailure/PR_WOULD_BLOCK_ERROR when it succeeded, but the AuthCertificate callback blocked. The contract for SSL_RecordLayerData is that it returns SECSuccess always. I had explicitly ignored this error in tests, which was just a mistake.
Assignee | ||
Comment 11•6 years ago
|
||
In D1992, @glandium pointed out an error in the comments.
There is the bigger question of forward compatibility there, but this is just
to fix the obvious error.
Comment 12•6 years ago
|
||
Description
•