Commit a6e04c16 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Explicitly fix some types, and opt-out on macro conflicts


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90496 13f79535-47bb-0310-9956-ffa450edef68
parent 67d020b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ static int ssl_hook_pre_connection(conn_rec *c)
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))
    {
+2 −2
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ int ssl_hook_ReadReq(request_rec *r)
     */
    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);
    }

@@ -822,7 +822,7 @@ int ssl_hook_Access(request_rec *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
+1 −2
Original line number Diff line number Diff line
@@ -320,10 +320,9 @@ SSLModConfigRec *
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;
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
#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"