Closed Bug 29648 Opened 25 years ago Closed 25 years ago

Need to be able to get the PRFileDesc from an nsIChannel

Categories

(Core :: Networking, defect, P3)

All
Mac System 8.5
defect

Tracking

()

CLOSED WONTFIX

People

(Reporter: dougt, Assigned: warrensomebody)

Details

I need the ablity to obtain the current PRFileDesc for a given nsIChannel. It would be great if I could QI to the nsISocketTransport interface, then off of that, get the descriptor. The reason I need this is so that I can display page information about an ssl connection. The ssl socket is nspr layered socket that contain cipher, key length, and cert status in the upper layer. On a page load, I have a docloader observer that needs to take the channel, get the filedescriptor, pop the secret data, and save it, so that I can display correct page information if the user requests it. I am sure that imap(s) will have to do a similar thing.
See my comments in bug 29646 about how to combine these.
I am not sure that these should be combined. You have have a normal non-secure channel, and want to get the socket of it. It does not make sense to get this information of a nsISecurityInfo interface.
I don't think we should expose fd's to the channel consumer; feels dangerous.
=> M15
Target Milestone: M15
Invalid now with the solution to bug 29646, right?
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
yup.
Status: RESOLVED → CLOSED
You need to log in before you can comment on or make changes to this bug.