I'm running the following software:
Apache 1.3.6, using mod_ssl 2.3.1 (in a DLL) and openssl 0.9.2b on Windows
NT.
I am trying to get the module configuration of the mod_ssl module from
within another module using ap_get_module_config().
request_rec *r;
SSLSrvConfigRec *sc;
sc=ap_get_module_config(r->server->module_config, &ssl_module);
I am linking the module with apachemodulessl.lib. The problem is that the
link fails with an unresolved external symbol ssl_module. I have been able
to get this to work as follows:
In mod_ssl.h, change:
extern module MODULE_VAR_EXPORT ssl_module;
to
module MODULE_VAR_EXPORT ssl_module;
In mod_ssl.c, change:
module MODULE_VAR_EXPORT ssl_module = {
to
ssl_module ={
This causes ssl_module to be an exported symbol of the DLL so the link
succeeds. My question is, is there a better way to do this? Thanks.
___________________________________________________________
Mike Foster, Software Developer, Xcert International Inc.
Email:[EMAIL PROTECTED], Tel:(604) 640-6210 x242, Fax:(604) 640-6220
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]