Accessing nsHttpChannel from SSLServerCertVerification?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Accessing nsHttpChannel from SSLServerCertVerification?

Jeremy Rand

Is there a way for the code in
to obtain the nsHttpChannel that triggered the TLS handshake?  I'm not
seeing an obvious way to do so, but I'm not particularly familiar with
this codebase.

I'm asking in the context of ; I'd like to
trigger webRequest events so that WebExtensions can alter the
certificate validation result.  If there's a better way to provide
similar functionality, please feel free to suggest it -- I'm totally
open to a different approach, I'm just not an expert on the codebase and
this looked like a plausible approach.

-Jeremy Rand
Lead Application Engineer at Namecoin
Mobile email: [hidden email]
Mobile OpenPGP: 2158 0643 C13B B40F B0FD 5854 B007 A32D AB44 3D9C
Send non-security-critical things to my Mobile with OpenPGP.
Please don't send me unencrypted messages.
My business email [hidden email] is having technical issues at the

dev-security mailing list
[hidden email]

signature.asc (817 bytes) Download Attachment