Closed Bug 1004154 Opened 10 years ago Closed 4 years ago

Move/reimplement more cleanly OCSP fetching code from nsNSSCallbacks.cpp to OCSPRequestor.cpp

Categories

(Core :: Security: PSM, defect, P3)

defect

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.
(More specifically, the nsNSSHttpInterface parts of nsNSSCallbacks.cpp need to move.)
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]
(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.
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]
Whiteboard: [psm-cleanup]
Priority: -- → P5
Priority: P5 → P3

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: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.