Changeset c1ef069 in mod_gnutls


Ignore:
Timestamp:
Jan 27, 2015, 5:48:53 AM (5 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
beb14d9
Parents:
5342265
Message:

Record if a connection is a proxy connection

When handling a proxy request with TLS in the backend, the proxy server
acts as a TLS client. This requires a different setup of the GnuTLS
session, so we need to add a record to the connection configuration that
states whether it is a proxy backend connection or not.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r5342265 rc1ef069  
    173173        /* Is TLS enabled for this connection? */
    174174    int enabled;
     175    /* Is this a proxy connection? */
     176    int is_proxy;
    175177        /* GnuTLS Session handle */
    176178    gnutls_session_t session;
  • src/gnutls_hooks.c

    r5342265 rc1ef069  
    699699        ctxt = apr_pcalloc(c->pool, sizeof (*ctxt));
    700700        ap_set_module_config(c->conn_config, &gnutls_module, ctxt);
     701        ctxt->is_proxy = GNUTLS_ENABLED_FALSE;
    701702    }
    702703    ctxt->enabled = GNUTLS_ENABLED_TRUE;
  • src/mod_gnutls.c

    r5342265 rc1ef069  
    101101    }
    102102    ctxt->enabled = GNUTLS_ENABLED_FALSE;
     103    ctxt->is_proxy = GNUTLS_ENABLED_TRUE;
    103104
    104105    if (c->input_filters)
     
    134135    }
    135136    ctxt->enabled = GNUTLS_ENABLED_TRUE;
     137    ctxt->is_proxy = GNUTLS_ENABLED_TRUE;
    136138    return 1;
    137139}
Note: See TracChangeset for help on using the changeset viewer.