When running tests, ssl external cache is cleared
Categories
(Core :: Security: PSM, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: kershaw, Assigned: kershaw)
Details
Attachments
(1 file)
I found this problem when I tried to run this test with turning network.ssl_tokens_cache_enabled on.
We set the resumption token at here, but the session id is cleared in head_psm.js by calling proxyStartSSL.
Since we got a null session if in ssl3_SendClientHello, we can't resume the session successfully.
![]() |
||
Comment 1•6 years ago
|
||
Seems like maybe NSS is not treating the external cache like the internal cache? Or maybe I'm misunderstanding what this bug is.
Assignee | ||
Comment 2•6 years ago
|
||
NSS clears the cache no matter it's internal or external in ssl_ResetSecurityInfo, which is triggered by calling proxyStartSSL.
I think the problem is why do we have to call sslSocketControl.proxyStartSSL() at here? Could we remove it or move it to somewhere else?
Updated•6 years ago
|
![]() |
||
Comment 3•6 years ago
|
||
proxyStartSSL
is how we start the TLS handshake. Maybe driveHandshake
would work? In any case, I'm still confused why the test would work with the NSS cache but not work with the external cache.
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Dana Keeler (she/her) (use needinfo) (:keeler for reviews) from comment #3)
proxyStartSSL
is how we start the TLS handshake. MaybedriveHandshake
would work? In any case, I'm still confused why the test would work with the NSS cache but not work with the external cache.
Because the sid is assigned at here, which is happened after proxyStartSSL
. If we use external cache, sid is assigned before proxyStartSSL
, so it will be cleared.
FWIW, all unit tests under security/manager/ssl/tests are passed without proxyStartSSL
. Maybe we can just remove these lines.
![]() |
||
Comment 5•6 years ago
|
||
Huh - ok. Maybe those lines were never necessary.
![]() |
||
Comment 6•6 years ago
|
||
Kershaw - it sounds like you have a patch with the fix we'll need (removing the call to proxyStartSSL
) - do you want to post that and I can review it?
Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Dana Keeler (she/her) (use needinfo) (:keeler for reviews) from comment #6)
Kershaw - it sounds like you have a patch with the fix we'll need (removing the call to
proxyStartSSL
) - do you want to post that and I can review it?
Sure. I can do this.
Kevin, I am sorry for stealing this bug from you. Feel free to take this back if you have another approach.
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Description
•