First, this is only for my own edification. This is not (necessarily)
something I want to see put into mod_ssl. But what would an EAPI hook have
to look like in order to return the SSL session data? I currently have
something that looks like:

SSL_SESSION *ssl_scache_lookup(const conn_rec *c)
{
    SSL *ssl;
    SSL_SESSION *pSession;
        
    ssl = ap_ctx_get(c->client->ctx, "ssl");
    if (ssl == NULL)
        return NULL;

    pSession = SSL_get_session(ssl);
    if (pSession == NULL)
        return NULL;

    return ssl_scache_retrieve(pSession->session_id,
                               pSession->session_id_length);
}

I would think that the call to ssl_scache_retrieve would be redundant, but
at first pass, it doesn't appear so. This works fine, the first time. But
subsequent calls fail in ssl_util_sdbm.c:getpair(). I am using sdbm
exclusively.

This is a unique problem, and I've given very little to go on I know. But
figured it wouldn't hurt to throw it out there. Sorry for the disturbance.

Thanks,
Tom

-- 
Tom Vaughan <tvaughan at aventail dot com>
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to