int ssl_hook_process_connection(SSLFilterRec *pRec)
{
int n, err;
- conn_rec *c = SSL_get_app_data (pRec->pssl);
+ conn_rec *c = (conn_rec*)SSL_get_app_data (pRec->pssl);
if (!SSL_is_init_finished(pRec->pssl))
{
*/
ssl = (SSL *)apr_table_get(r->connection->notes, "ssl");
if (ssl != NULL) {
- apctx = SSL_get_app_data2(ssl);
+ apctx = (apr_table_t *)SSL_get_app_data2(ssl);
apr_table_setn(apctx, "ssl::request_rec", (const char *)r);
}
* restriction on the certificate chain).
*/
if (dc->nVerifyDepth != UNSET) {
- apctx = SSL_get_app_data2(ssl);
+ apctx = (apr_table_t *)SSL_get_app_data2(ssl);
if ((vp = (void *)apr_table_get(apctx, "ssl::verify::depth")) != NULL)
n = (int)AP_CTX_PTR2NUM(vp);
else
ssl_util_getmodconfig_ssl(
SSL *ssl, const char *key)
{
- conn_rec *c;
+ conn_rec *c = (conn_rec *)SSL_get_app_data(ssl);
SSLModConfigRec *mc = NULL;
- c = SSL_get_app_data(ssl);
if (c != NULL)
mc = ssl_util_getmodconfig(c->base_server, key);
return mc;
#define SSL_LIBRARY_VERSION OPENSSL_VERSION_NUMBER
#define SSL_LIBRARY_NAME "OpenSSL"
#define SSL_LIBRARY_TEXT OPENSSL_VERSION_TEXT
-#else
+#elif !defined(SSL_LIBRARY_VERSION)
#define SSL_LIBRARY_VERSION 0x0000
#define SSL_LIBRARY_NAME "OtherSSL"
#define SSL_LIBRARY_TEXT "OtherSSL 0.0.0 00 XXX 0000"