[Mono-list] ServerVariablesCollection

Sebastien Pouliot sebastien.pouliot at gmail.com
Fri Mar 3 09:30:54 EST 2006


Hello Mart,

On Fri, 2006-03-03 at 15:53 +0200, Mart L6hmus wrote:
> >>I would like to access some other ServerVariables ( SSL_* ), so I
> >>changed class ServerVariablesCollection method
> >>loadServerVariablesCollection(), added line like that:
> >>  Add("SSL_CLIENT_S_DN", wr.GetServerVariable("SSL_CLIENT_S_DN"));
> >>
> >>This seems like a hack, I dont want to recompile mono byself on every
> >>new Mono release :-). Does someone know The Right Way to access some
> >>other ServerVariables?
> > 
> > 
> > If it's for SSL related variables and if you're using XSP (mod_mono
> > still miss some code IIRC) then you can get most information by using
> > the client certificate itself.
> 
> Yes, it is for SSL related variables, but I dont use XSP. I use mod_mono
> and Apache 2.

Then it's a great time to contribute :-)

XSP and mod_mono share a lot of code. Most of the required code is
already present in the shared class:
	xsp/src/Mono.WebServer/MonoWorkerRequest.cs

If the mod_mono specific code calls the
MonoWorkerRequest.SetClientCertificate (like it's being done in XSP)
then the System.Web.HttpClientCertificate will start working (as
expected). There are also a few other variables outside the certificate
that may be useful (again you can check XSP source code).

It's simple, but it needs testing.
-- 
Sebastien Pouliot  <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/



More information about the Mono-list mailing list