Changeset 19e80a5 in mod_gnutls for src/gnutls_util.h


Ignore:
Timestamp:
Jan 28, 2019, 2:50:38 PM (16 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master
Children:
102aa67
Parents:
0931b35 (diff), ea9c699 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Update upstream source from tag 'upstream/0.9.0'

Update to upstream version '0.9.0'
with Debian dir 619b546038886b240d2c8e61ee1a1b13ce0867d7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_util.h

    r0931b35 r19e80a5  
    11/*
    2  *  Copyright 2016-2018 Fiona Klute
     2 *  Copyright 2016-2019 Fiona Klute
    33 *
    44 *  Licensed under the Apache License, Version 2.0 (the "License");
     
    2525#ifndef __MOD_GNUTLS_UTIL_H__
    2626#define __MOD_GNUTLS_UTIL_H__
     27
     28/** Default GnuTLS priority string for mod_gnutls */
     29#define MGS_DEFAULT_PRIORITY "NORMAL"
    2730
    2831/** maximum allowed length of one header line */
     
    7477mgs_handle_t *init_gnutls_ctxt(conn_rec *c);
    7578
     79/**
     80 * Initialize the global default priorities, must be called by the
     81 * pre_config hook
     82 *
     83 * @return `GNUTLS_E_SUCCESS` or a GnuTLS error code
     84 */
     85int mgs_default_priority_init();
     86
     87/**
     88 * Get the global default priorities
     89 */
     90gnutls_priority_t mgs_get_default_prio();
     91
     92/**
     93 * Deinitialize the global default priorities, must be in the cleanup
     94 * hook of the pre_config pool.
     95 */
     96void mgs_default_priority_deinit();
     97
     98/**
     99 * Create a shallow copy of an APR array of `char *` into a new array
     100 * of gnutls_datum_t, filling `size` via `strlen()`. "Shallow copy"
     101 * means that the strings themselves are not copied, just the pointers
     102 * to them.
     103 *
     104 * @param src array to copy
     105 * @param pool allocate memory for the new array
     106 * @param min_elements allocate room for at least this many elements
     107 *
     108 * @return pointer to the first element of the new array
     109 */
     110gnutls_datum_t * mgs_str_array_to_datum_array(const apr_array_header_t *src,
     111                                              apr_pool_t *pool,
     112                                              const int min_elements);
     113
    76114#endif /* __MOD_GNUTLS_UTIL_H__ */
Note: See TracChangeset for help on using the changeset viewer.