Changeset 5a6446d in mod_gnutls


Ignore:
Timestamp:
Apr 8, 2005, 5:15:51 PM (14 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
482f47f
Parents:
a8c1310
Message:

wrap the debug log in maintainer mode.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    ra8c1310 r5a6446d  
    55AC_CONFIG_SRCDIR([src/mod_gnutls.c])
    66AC_CONFIG_AUX_DIR(config)
     7OOO_MAINTAIN_MODE
    78AM_MAINTAINER_MODE
    89AC_CANONICAL_TARGET
  • include/mod_gnutls.h.in

    ra8c1310 r5a6446d  
    4444
    4545#define MOD_GNUTLS_VERSION "@MOD_GNUTLS_VERSION@"
     46
     47#define MOD_GNUTLS_DEBUG @OOO_MAINTAIN@
    4648
    4749typedef enum
  • src/mod_gnutls.c

    ra8c1310 r5a6446d  
    2222#endif
    2323
     24#if MOD_GNUTLS_DEBUG
    2425static apr_file_t* debug_log_fp;
     26#endif
    2527
    2628static apr_status_t mod_gnutls_cleanup_pre_config(void *data)
     
    3032}
    3133
     34#if MOD_GNUTLS_DEBUG
    3235static void gnutls_debug_log_all( int level, const char* str)
    3336{
    3437    apr_file_printf(debug_log_fp, "<%d> %s\n", level, str);
    3538}
     39#endif
    3640
    3741static int mod_gnutls_hook_pre_config(apr_pool_t * pconf,
     
    4953                              apr_pool_cleanup_null);
    5054
     55#if MOD_GNUTLS_DEBUG
    5156    apr_file_open(&debug_log_fp, "/tmp/gnutls_debug",
    5257                  APR_APPEND|APR_WRITE|APR_CREATE, APR_OS_DEFAULT, pconf);
     
    5459    gnutls_global_set_log_level(9);
    5560    gnutls_global_set_log_function(gnutls_debug_log_all);
     61#endif
    5662
    5763    return OK;
Note: See TracChangeset for help on using the changeset viewer.