On Sat, Feb 05, 2000, Renato Portela wrote:
> In this point, the ap_hook_use in ssl_engine_kernel.c is:
>
> char *result;
> (...)
> ap_hook_use( "ap::mod_ssl::callback_SSLVerify",
> AP_HOOK_SIG3(ptr,ptr,ptr),
> AP_HOOK_ALL,
> &result,ctx);
You've specified two arguments for the function ("&result, ctx"), but
you declare the function to have a signature with three arguments
("AP_HOOK_SIG3(...)"). This is incorrect. The signature of an "char
*OCSPVerify(X509_STORE_CTX *)" has to be "AP_HOOK_SIG2(ptr,ptr)", of
course.
> [...]
> 4.By the way, my intention is to return a int but as i don't know if
> it's possible to return an int instead of a char * i'm using atoi...
> after receiving an char * Can i return directly an int?
Sure, you can directly return an int, too. Just declare the function as
AP_HOOK_SIG2(int,ptr) and make sure "result" is an int.
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]