Changeset 0fcba60 in mod_gnutls for src/gnutls_util.c


Ignore:
Timestamp:
Dec 17, 2018, 1:05:51 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, debian/master, master, proxy-ticket
Children:
68b5156
Parents:
f674424
git-author:
Fiona Klute <fiona.klute@…> (12/17/18 13:02:43)
git-committer:
Fiona Klute <fiona.klute@…> (12/17/18 13:05:51)
Message:

Move compiled default priorities to gnutls_util.[hc]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_util.c

    rf674424 r0fcba60  
    1919#include <apr_strings.h>
    2020#include <gnutls/gnutls.h>
     21
     22
     23
     24/** Compiled version of MGS_DEFAULT_PRIORITY, must be initialized
     25 * using mgs_default_priority_init() in the pre_config hook and
     26 * deinitialized in the matching pool cleanup hook. */
     27static gnutls_priority_t default_prio;
     28
    2129
    2230
     
    153161    return ctxt;
    154162}
     163
     164
     165
     166int mgs_default_priority_init()
     167{
     168    return gnutls_priority_init(&default_prio, MGS_DEFAULT_PRIORITY, NULL);
     169}
     170
     171
     172
     173gnutls_priority_t mgs_get_default_prio()
     174{
     175    return default_prio;
     176}
     177
     178
     179
     180void mgs_default_priority_deinit()
     181{
     182    gnutls_priority_deinit(default_prio);
     183}
Note: See TracChangeset for help on using the changeset viewer.