I'm having some trouble getting the server config structure in the
ssl_init_Child() function.  Hopefully, this is something I'm doing
wrong.....

[running apache 1.3.12 + mod_ssl 2.6.2 + openssl-0.9.5 on redhat 6.1....  I
am also debugging and running with the -X option]

Given the following ssl_init_Child() code:

void ssl_init_Child(server_rec *s, pool *p)
{
        SSLModConfigRec *mc = myModConfig();
        SSLSrvConfigRec *sc = mySrvConfig(s);

        /* open the mutex lockfile */
        ssl_mutex_reinit(s, p);

        /* do my custom some stuff with sc & mc... */

        return;
}

I find that the 'mc' struct is ok, but the 'sc' struct pointer
contains an empty (but initialized) structure.

I had assumed that upon starting (or shortly thereafter), each child would
have a COPY of the server config record in memory.  

Is this the case?  Or is my assumption incorrect.

Basically, I'm trying to get to the SSL_CTX structure that
was setup and initialized prior to launching each child process.  I need to
add some process unique data to this context....

Perhaps ssl_init_Child() happens before the SSLSrvConfig record is
established for the child process?

Any help appreciated,

- Bob

----------------------------------------------------------------
Bob Burns                              Racal Security & Payments
[EMAIL PROTECTED]                   1-888-744-4976, X6510
                                          (local) 1-954-846-6510
---------------------------------------------------------------- 
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to