Closed
Bug 1004154
Opened 11 years ago
Closed 6 years ago
Move/reimplement more cleanly OCSP fetching code from nsNSSCallbacks.cpp to OCSPRequestor.cpp
Categories
(Core :: Security: PSM, defect, P3)
Core
Security: PSM
Tracking
()
RESOLVED
DUPLICATE
of bug 1456489
People
(Reporter: keeler, Unassigned)
References
Details
(Whiteboard: [psm-cleanup])
(In reply to Brian Smith (:briansmith, was :bsmith; NEEDINFO? for response) from bug 982248 comment #11)
> It would be great if we could "hg cp ../manager/ssl/src/nsNSSCallbacks.cpp
> OCSPRequester.cpp" to move the OCSP callback code to OCSPRequester.cpp.
> Could be done later too though; if so, please file the follow-up bug for
> doing it.
![]() |
Reporter | |
Comment 1•11 years ago
|
||
(More specifically, the nsNSSHttpInterface parts of nsNSSCallbacks.cpp need to move.)
Comment 2•11 years ago
|
||
This is basically just moving the code between "class nsHTTPDownloadEvent" and "nsHTTPListener::send_done_signal", inclusive, to OCSPRequestor.cpp, minimizing the #includes in nsNSSCallbacks.cpp, and making sure it compiles and that the tests pass ("mach xpcshell-test security/manager/ssl/tests/unit" in particular).
Additionally, in a separate patch, the code could be simplified to avoid the use of NSS's SEC_HttpClientFcnV1 completely. The code only currently uses that because we used to use NSS's ocsp.c OCSP stuff, which required it. Now it is superfluous.
Whiteboard: [good next bug]
![]() |
||
Comment 3•9 years ago
|
||
(In reply to Brian Smith (:briansmith, :bsmith, use NEEDINFO?) from comment #2)
> Additionally, in a separate patch, the code could be simplified to avoid the
> use of NSS's SEC_HttpClientFcnV1 completely. The code only currently uses
> that because we used to use NSS's ocsp.c OCSP stuff, which required it. Now
> it is superfluous.
This ended up being done in Bug 1004149.
![]() |
||
Comment 4•9 years ago
|
||
I'm morphing this bug a bit since IMO it makes sense to make at least some API improvements when moving the code. See Bug 1004149 comment 7 in particular for issues with the current API.
Depends on: 1004149
Summary: move OCSP fetching code from nsNSSCallbacks.cpp to OCSPRequestor.cpp → Move/reimplement more cleanly OCSP fetching code from nsNSSCallbacks.cpp to OCSPRequestor.cpp
Whiteboard: [good next bug]
![]() |
Reporter | |
Updated•9 years ago
|
Whiteboard: [psm-cleanup]
![]() |
Reporter | |
Updated•8 years ago
|
Priority: -- → P5
![]() |
Reporter | |
Updated•8 years ago
|
Priority: P5 → P3
![]() |
Reporter | |
Comment 5•6 years ago
|
||
A lot of improvements were made in bug 1456489, although the implementation is still in nsNSSCallbacks.cpp. I'm not sure it's important to move it at this point.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•