Changeset d04f7da in mod_gnutls for include


Ignore:
Timestamp:
Apr 7, 2015, 12:28:40 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, jessie-backports, upstream
Children:
9c6ffe1
Parents:
2cde8111
Message:

Version guards for gnutls_privkey_import_openpgp_raw workaround

The invalid free bug in gnutls_privkey_import_openpgp_raw should be
fixed in GnuTLS 3.3.12 [1], so add appropriate version guards and use
the workaround only with older versions.

[1] https://github.com/nmav/mod_gnutls/commit/031acac9c6541034777f8917633164b51f6bd10a#commitcomment-10581365

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r2cde8111 rd04f7da  
    170170        /* OpenPGP Certificate Private Key */
    171171    gnutls_privkey_t privkey_pgp;
    172     /* Internal structure for the OpenPGP private key. DO NOT USE
    173      * outside key loading. */
     172#if GNUTLS_VERSION_NUMBER < 0x030312
     173    /* Internal structure for the OpenPGP private key, used in the
     174     * workaround for a bug in gnutls_privkey_import_openpgp_raw that
     175     * frees memory that is still needed. DO NOT USE for any other
     176     * purpose. */
    174177    gnutls_openpgp_privkey_t privkey_pgp_internal;
     178#endif
    175179
    176180    /* Export full certificates to CGI environment: */
Note: See TracChangeset for help on using the changeset viewer.