Changeset ed07ddf in mod_gnutls


Ignore:
Timestamp:
Jun 27, 2010, 1:55:53 PM (9 years ago)
Author:
Nikos Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
8e98518
Parents:
bf41514
Message:

Added support for session tickets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rbf41514 red07ddf  
    3434
    3535static int mpm_is_threaded;
     36static gnutls_datum session_ticket_key = { NULL, 0 };
    3637
    3738static int mgs_cert_verify(request_rec * r, mgs_handle_t * ctxt);
     
    9899        return -3;
    99100    }
     101   
     102    ret = gnutls_session_ticket_key_generate( &session_ticket_key);
     103    if (ret < 0) {
     104        _gnutls_log(debug_log_fp, "gnutls_session_ticket_key_generate: %s\n", gnutls_strerror(ret));
     105    }
    100106
    101107    apr_pool_cleanup_register(pconf, NULL, mgs_cleanup_pre_config,
     
    145151     * enabled on this virtual server. Note that here we ignore the version
    146152     * negotiation.
    147      */
     153     */   
    148154    ret = gnutls_priority_set(session, ctxt->sc->priorities);
    149155    /* actually it shouldn't fail since we have checked at startup */
     
    659665
    660666    gnutls_init(&ctxt->session, GNUTLS_SERVER);
     667    if (session_ticket_key.data != NULL)
     668        gnutls_session_ticket_enable_server(ctxt->session, &session_ticket_key);
    661669
    662670    /* because we don't set any default priorities here (we set later at
Note: See TracChangeset for help on using the changeset viewer.