Changeset 235e109 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Apr 9, 2018, 2:24:59 AM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, debian/stretch-backports, master, proxy-ticket, upstream
Children:
23e98b3
Parents:
fe21671
Message:

Unify initialization of mod_gnutls connection context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rfe21671 r235e109  
    2222#include "gnutls_cache.h"
    2323#include "gnutls_ocsp.h"
     24#include "gnutls_util.h"
    2425#include "http_vhost.h"
    2526#include "ap_mpm.h"
     
    957958static void create_gnutls_handle(conn_rec * c)
    958959{
    959     /* Get mod_gnutls server configuration */
    960     mgs_srvconf_rec *sc = (mgs_srvconf_rec *)
    961             ap_get_module_config(c->base_server->module_config, &gnutls_module);
    962 
    963960    _gnutls_log(debug_log_fp, "%s: %d\n", __func__, __LINE__);
    964961
    965962    /* Get connection specific configuration */
    966     mgs_handle_t *ctxt = (mgs_handle_t *) ap_get_module_config(c->conn_config, &gnutls_module);
    967     if (ctxt == NULL)
    968     {
    969         ctxt = apr_pcalloc(c->pool, sizeof (*ctxt));
    970         ap_set_module_config(c->conn_config, &gnutls_module, ctxt);
    971         ctxt->is_proxy = GNUTLS_ENABLED_FALSE;
    972     }
     963    mgs_handle_t *ctxt = init_gnutls_ctxt(c);
    973964    ctxt->enabled = GNUTLS_ENABLED_TRUE;
    974     ctxt->c = c;
    975     ctxt->sc = sc;
    976965    ctxt->status = 0;
    977966    ctxt->input_rc = APR_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.