You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Steve Downey <st...@netfolio.com> on 2001/11/05 15:24:38 UTC
RE: DO NOT REPLY [Bug 4545] New: - Webapp connector seg faults u
nder an SSL connection
> -----Original Message-----
> From: GOMEZ Henri [mailto:hgomez@slib.fr]
> Sent: Monday, November 05, 2001 5:39 AM
> To: Tomcat Developers List
> Subject: RE: DO NOT REPLY [Bug 4545] New: - Webapp connector
> seg faults
> u nder an SSL connection
>
>
> > Requiring StdEnvVars is NOT a good thing, though. It adds a
> fair bit of
> > overhead to the SSL connection, which is why it was made an
> option. Most
> > httpd.confs will only turn it on for cgi and shtml. Tomcat
> wants it turned
> > on for everything.
>
> Yes it's adding overhead, but it's mandatory if you want to have
> access to SSL vars. And thanks Ralf (mod_ssl author) to have put
> the SSLOptions which allow you to make the export configurable.
>
It's mandatory if you want the SSL vars in the environment. However, the
information is available in the SSL context without exporting it to
environment variables. Two chunks of C code in the same process that
communicate via environment variables, rather than passed parameters, is
generally bad practice.
-SMD
<><><><><><><><><><><><><><><><><><><><><>This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named. Any use, copying or disclosure by any other person is strictly
prohibited. If you have received this transmission in error, please notify
the sender via e-mail. <><><><><><><><><><><><><><><><><><><><><>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: DO NOT REPLY [Bug 4545] New: - Webapp connector seg faults u
nder an SSL connection
Posted by Pier Fumagalli <pi...@betaversion.org>.
Steve Downey at steve.downey@netfolio.com wrote:
>> Yes it's adding overhead, but it's mandatory if you want to have
>> access to SSL vars. And thanks Ralf (mod_ssl author) to have put
>> the SSLOptions which allow you to make the export configurable.
>>
>
> It's mandatory if you want the SSL vars in the environment. However, the
> information is available in the SSL context without exporting it to
> environment variables. Two chunks of C code in the same process that
> communicate via environment variables, rather than passed parameters, is
> generally bad practice.
And in fact in the same process we don't use environment variables... Look
at the code and you'll "discover" that the Apache request_rec structure has
a nice ap_table (r->subprocess_env) which holds all variables. Only mod_cgi
converts that table into a set of environment variables...
The +StdEnvVars +ExportCertData options in mod_ssl only tell the SSL
module to fill up the r->supbrocess_env table...
Bah.
Pier
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>