(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. |
|