Changeset 469861a in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Oct 2, 2018, 12:57:20 PM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
8273683
Parents:
5f15295
Message:

Enable session tickets in the post client hello hook

With this setting GnuTLSSessionTickets per virtual host actually
works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r5f15295 r469861a  
    335335    }
    336336#endif
     337
     338    /* Enable session tickets */
     339    if (session_ticket_key.data != NULL &&
     340        ctxt->sc->tickets == GNUTLS_ENABLED_TRUE)
     341    {
     342        ret = gnutls_session_ticket_enable_server(ctxt->session, &session_ticket_key);
     343        if (ret != GNUTLS_E_SUCCESS)
     344            ap_log_cerror(APLOG_MARK, APLOG_ERR, APR_EGENERAL, ctxt->c,
     345                          "gnutls_session_ticket_enable_server failed: %s (%d)",
     346                          gnutls_strerror(ret), ret);
     347    }
    337348
    338349    ret = process_alpn_result(ctxt);
     
    10921103                          "gnutls_init for server side failed: %s (%d)",
    10931104                          gnutls_strerror(err), err);
    1094         /* Initialize Session Tickets */
    1095         if (session_ticket_key.data != NULL &&
    1096             ctxt->sc->tickets == GNUTLS_ENABLED_TRUE)
    1097         {
    1098             err = gnutls_session_ticket_enable_server(ctxt->session, &session_ticket_key);
    1099             if (err != GNUTLS_E_SUCCESS)
    1100                 ap_log_cerror(APLOG_MARK, APLOG_ERR, err, c,
    1101                               "gnutls_session_ticket_enable_server failed: %s (%d)",
    1102                               gnutls_strerror(err), err);
    1103         }
    11041105    }
    11051106
Note: See TracChangeset for help on using the changeset viewer.