DescriptionReintegrate certificate selection in HttpNetworkTransaction DoLoop
The HttpNetworkTransaction refactor intercepts the client auth
handling and moves it out of DoLoop. Because HandleCertificateRequest
often switches states, this caused a DCHECK and crash in some
circumstances.
This reintegrates it and adds unit tests to catch the DCHECK. We really
want to test sending a legitimate certificate, as well as more
checking interesting errors, but we cannot import temporary keys yet.
We also add a patch for tlslite to send a non-empty certificate_types.
Apple's SSL implementation raises a protocol error otherwise.
BUG=52744, 51132, 52778
TEST=SSLClientSocketTest.ConnectClientAuth*,URLRequestTest.ClientAuthTest
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56983
Patch Set 1 #Patch Set 2 : Fix the Linux DCHECK #
Total comments: 4
Patch Set 3 : Address Wan-Teh's comments #Patch Set 4 : Correctly integrate with state machine, fix Windows crash #Patch Set 5 : Add a TODO for future unit test #
Total comments: 4
Patch Set 6 : Send non-empty certificate_types to fix net_unittests on OS X #Patch Set 7 : Adjust comment #
Total comments: 4
Patch Set 8 : Address Wan-Teh's comments and rebase on top of trunk #
Messages
Total messages: 10 (0 generated)
|