tvaughan wrote:
This patch makes the ssl session id available via the environment variable
SSL_SESSION_ID. Apache modules may obtain this ssl session id via the
"ap::mod_ssl::var_lookup" EAPI hook. The value of this ssl session id is
actually the concatenation of the hex representation of each byte in the
ssl session id. For example, running this through printenv produces:
SSL_SESSION_ID = bd1c692524d2d3648cb8c87bf71111484eb5dd81777659b479b2dbfbc3ec5d2
The idea behind this is to make the ssl session id available so that other
modules may use the ssl session id as a `key' into their own session table.
-Tom
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?
/Lena
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]