On Wed, Feb 02, 2000, Renato Portela wrote:
> I would like to use a hook (using EAPI) in the ssl_engine_kernel.c so my
> mod could execute the code i want to.
>
> So i added in ssl_engine_kernel in ssl_callback_SSLVerify (before
> return) the following line:
> ap_hook_use( "ap::mod_ssl::callback_SSLVerify",
> AP_HOOK_SIG3(ptr,ptr,ptr),
> AP_HOOK_DECLINE(NULL),
> &result, r);
>
> And in my module in the function module initializer the folowing code:
> #ifdef EAPI
> ap_hook_register("ap::mod_ssl::callback_SSLVerify",
> OCSPVerify,AP_HOOK_NOCTX);
> #endif
>
> And defined the function
> char *OCSPVerify(request_rec *r, char *a) {
> ...
> }
>
> but the code inside this function is never executed.
>
> The module is installed in apache (i run httpd -l) and modssl too.
>
> Anyone can help me ?
> Am i doing the ap_hook_use in the right place?
> Am i doing well the ap_hook_register ?
No, your usage is fine, but ssl_callback_SSLVerify is only called by
OpenSSL if there is actually a client certificate which has to be
verified. So I guess you're just testing without client certs.
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]