Hi everybody!
Thanks for the fast answers of our last mails (Ralf).
I've got a new problem!
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);
And in mod_ocsp.c init:
ap_hook_register("ap::mod_ssl::callback_SSLVerify",
OCSPVerify,
AP_HOOK_NOCTX);
and also in mod_ocsp.c:
char *OCSPVerify(X509_STORE_CTX *ctx) {
SSL *ssl = (SSL *)X509_STORE_CTX_get_app_data(ctx);
actx = (ap_ctx *)SSL_get_app_data2(ssl);
r = (request_rec *)ap_ctx_get(actx, "ssl::request_rec");
(...)
return ap_psprintf(r->pool,"%d",0);
}
The error in error_log is:
[Mon Jan 10 00:00:29 2000] [notice] child pid 2858 exit signal
Segmentation fault (11)
And i changed the return line for return NULL; and ther was no
Segmentation fault.
My question are:
1.What's the problem with return ?
2.Am i doing the hook_use ok ?
3.Am i doing the ap_hook_register ok?
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?
Many thanks (as there are many questions) in advance,
Pedro Roque and Renato Portela
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]