Changeset 46de753 in mod_gnutls


Ignore:
Timestamp:
Dec 8, 2013, 12:55:08 PM (6 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
ba7d1c5
Parents:
ac32bb5
Message:

fix build against GnuTLS 2.12.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rac32bb5 r46de753  
    15311531    if (sc->enabled != GNUTLS_ENABLED_FALSE) {
    15321532        mgs_handle_t* ctxt;
    1533         char* z = NULL;
    15341533        ctxt = ap_get_module_config(r->connection->conn_config, &gnutls_module);
    15351534        if (ctxt && ctxt->session != NULL) {
     1535#if GNUTLS_VERSION_MAJOR < 3
     1536            ap_rprintf(r, "<dt>This TLS Session:</dt><dd>%s</dd>\n",
     1537                gnutls_cipher_suite_get_name(gnutls_kx_get(ctxt->session),
     1538                gnutls_cipher_get(ctxt->session),
     1539                gnutls_mac_get(ctxt->session)));
     1540#else
     1541            char* z = NULL;
    15361542            z = gnutls_session_get_desc(ctxt->session);
    15371543            if (z) {
     
    15391545                gnutls_free(z);
    15401546            }
     1547#endif
    15411548        }
    15421549    }
Note: See TracChangeset for help on using the changeset viewer.