Changeset ac3f500 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Jun 18, 2016, 2:58:28 PM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, proxy-ticket, upstream
Children:
ef06c74
Parents:
87d507b
git-author:
Thomas Klute <thomas2.klute@…> (06/18/16 14:53:10)
git-committer:
Thomas Klute <thomas2.klute@…> (06/18/16 14:58:28)
Message:

Compatibility code for GnuTLS version < 3.4

  • gnutls_memset() is not available.
  • GNUTLS_MAX_SESSION_ID_SIZE is undefined. GNUTLS_MAX_SESSION_ID serves the same purpose, but the name is less intuitive.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r87d507b rac3f500  
    7070#define MC_TAG "mod_gnutls:"
    7171/* two characters per byte, plus one more for '\0' */
     72#if GNUTLS_VERSION_NUMBER >= 0x030400
    7273#define GNUTLS_SESSION_ID_STRING_LEN ((GNUTLS_MAX_SESSION_ID_SIZE * 2) + 1)
     74#else
     75#define GNUTLS_SESSION_ID_STRING_LEN ((GNUTLS_MAX_SESSION_ID * 2) + 1)
     76#endif
    7377
    7478#if MODULE_MAGIC_NUMBER_MAJOR < 20081201
Note: See TracChangeset for help on using the changeset viewer.