You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Bill Stoddard <bi...@wstoddard.com> on 2001/11/06 00:11:37 UTC

ssl_var_lookup()...

I have a module that needs access to SSLCIPHER, SSL_CLIENT_CERT and SSL_SESSIONID. What is
the right way for a module to get at this info?  I see a couple of methods:

1. Use SSL_* calls directly

2. Call ssl_var_lookup()
    This call looks to be very inefficient. Full of string compares. And the call is not
exported for use on Windows either (which is easy enough to change).

3. Use SSLOptions to set per req env
This is overkill for my use. I don't need most of the envars set by the common options.

Bill


Re: ssl_var_lookup()...

Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 5 Nov 2001, Bill Stoddard wrote:

> I have a module that needs access to SSLCIPHER, SSL_CLIENT_CERT and SSL_SESSIONID. What is
> the right way for a module to get at this info?  I see a couple of methods:
> 
> 1. Use SSL_* calls directly
> 
> 2. Call ssl_var_lookup()
>     This call looks to be very inefficient. Full of string compares. And the call is not
> exported for use on Windows either (which is easy enough to change).

it is registered as an optional function.  for an example see:
httpd-test/perl-framework/c-modules/test_ssl/mod_test_ssl.c

as for performance of ssl_var_lookup(), that certainly should be improved.