Mantis - Resin
Viewing Issue Advanced Details
2871 minor always 08-26-08 09:23 10-09-08 16:35
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.2.1  
0002871: mod_caucho with SSL
(rep by Michael Schiemer)

mod_caucho not sending SSL_* data. check EAPI flag in current Apaches.

-- Scott

Notes
(0003359)
ferg   
08-26-08 09:57   
Apache 2.0.63
(0003374)
ferg   
09-02-08 15:57   
After examining the Apache 2 source code, it appears that the method ap_hook_call(..) has been deprecated. It has been replaced by the method ssl_var_lookup(...)
 
So if you replace this code
 
char *var;
int v;
    
if ((v = ap_hook_call("ap::mod_ssl::var_lookup", &var, r->pool, r->server, r->connection, r, "SSL_CLIENT_CERT"))) {
  cse_write_string(s, CSE_CLIENT_CERT, var);
}
with this
 
// Declaration from mod_ssl.h
char * ssl_var_lookup(apr_pool_t *, server_rec *, conn_rec *, request_rec *, char *);
 
char *var;
var = ssl_var_lookup(r->pool, r->server, r->connection, r, "SSL_CLIENT_CERT");
if (var != NULL) {
   cse_write_string(s, CSE_CLIENT_CERT, var);
}
The client's certificate now shows up in the HttpRequest object. Depending on the version of Apache (2.0 vs. 2.2) some (or all) of the other attributes (that are currently being extracted) are available.