On Thu, May 20, 1999, [EMAIL PROTECTED] wrote:

> I added your correction for the ssl_lookup_var_ssl() function (and also
> the minor correction to ssl_engine_kernel.c and now I want to retreive
> the SSL_SESSION_ID value from my java module (jserv_ajpv11.c,
> function ajpv11_handler(), where environment variables are being
> set to the request that will be sent to the servlet.
> 
> char* ssl_session_id;
> request_rec* r;
> 
> ap_hook_call("ap::mod_ssl::var_lookup",
>      &ssl_session_id,
>      &r->pool,
>      &r->server,
>      &r->connection,
>      r,
>      "SSL_SESSION_ID");
> 
> The result is an empty string in "ssl_session_id", and after doing
> traces in the ssl_lookup_var_ssl() function I found out I get
> no SSL from the patch lookup part.
> 
> ssl = ap_ctx_get(c->client->ctx);
> 
>      ==> gives ssl == NULL
> 
> I also tried the r->prev (since I have a redirected request) but
> the result remains the same. Any more hints why my context
> is bad (I have a context, so it's not NULL)? How do I get
> the SSL_SESSION_ID in the java module?

I've now comitted Tom's stuff, but in a slightly different way. It worked fine
for my printenv CGI script.  So, can you retry this with the latest mod_ssl
snapshot from ftp://ftp.modssl.org/snapshot/?

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to