aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/tls/gnutls_errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/tls/gnutls_errors.h')
-rw-r--r--src/daemon/https/tls/gnutls_errors.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/daemon/https/tls/gnutls_errors.h b/src/daemon/https/tls/gnutls_errors.h
index fcfc4c63..edc89817 100644
--- a/src/daemon/https/tls/gnutls_errors.h
+++ b/src/daemon/https/tls/gnutls_errors.h
@@ -28,46 +28,46 @@
28 28
29#ifdef __FILE__ 29#ifdef __FILE__
30# ifdef __LINE__ 30# ifdef __LINE__
31# define gnutls_assert() _gnutls_debug_log( "ASSERT: %s:%d\n", __FILE__,__LINE__); 31# define MHD_gnutls_assert() MHD__gnutls_debug_log( "ASSERT: %s:%d\n", __FILE__,__LINE__);
32# else 32# else
33# define gnutls_assert() 33# define MHD_gnutls_assert()
34# endif 34# endif
35#else /* __FILE__ not defined */ 35#else /* __FILE__ not defined */
36# define gnutls_assert() 36# define MHD_gnutls_assert()
37#endif 37#endif
38 38
39int mhd_gtls_asn2err (int asn_err); 39int MHD_gtls_asn2err (int asn_err);
40void mhd_gtls_log (int, const char *fmt, ...); 40void MHD_gtls_log (int, const char *fmt, ...);
41 41
42extern int _gnutls_log_level; 42extern int MHD__gnutls_log_level;
43 43
44#ifdef C99_MACROS 44#ifdef C99_MACROS
45#define LEVEL(l, ...) if (_gnutls_log_level >= l || _gnutls_log_level > 9) \ 45#define LEVEL(l, ...) if (MHD__gnutls_log_level >= l || MHD__gnutls_log_level > 9) \
46 mhd_gtls_log( l, __VA_ARGS__) 46 MHD_gtls_log( l, __VA_ARGS__)
47 47
48#define LEVEL_EQ(l, ...) if (_gnutls_log_level == l || _gnutls_log_level > 9) \ 48#define LEVEL_EQ(l, ...) if (MHD__gnutls_log_level == l || MHD__gnutls_log_level > 9) \
49 mhd_gtls_log( l, __VA_ARGS__) 49 MHD_gtls_log( l, __VA_ARGS__)
50 50
51# define _gnutls_debug_log(...) LEVEL(2, __VA_ARGS__) 51# define MHD__gnutls_debug_log(...) LEVEL(2, __VA_ARGS__)
52# define _gnutls_handshake_log(...) LEVEL(3, __VA_ARGS__) 52# define MHD__gnutls_handshake_log(...) LEVEL(3, __VA_ARGS__)
53# define _gnutls_io_log(...) LEVEL_EQ(5, __VA_ARGS__) 53# define MHD__gnutls_io_log(...) LEVEL_EQ(5, __VA_ARGS__)
54# define _gnutls_buffers_log(...) LEVEL_EQ(6, __VA_ARGS__) 54# define MHD__gnutls_buffers_log(...) LEVEL_EQ(6, __VA_ARGS__)
55# define _gnutls_hard_log(...) LEVEL(9, __VA_ARGS__) 55# define MHD__gnutls_hard_log(...) LEVEL(9, __VA_ARGS__)
56# define _gnutls_record_log(...) LEVEL(4, __VA_ARGS__) 56# define MHD__gnutls_record_log(...) LEVEL(4, __VA_ARGS__)
57# define _gnutls_read_log(...) LEVEL_EQ(7, __VA_ARGS__) 57# define MHD__gnutls_read_log(...) LEVEL_EQ(7, __VA_ARGS__)
58# define _gnutls_write_log(...) LEVEL_EQ(7, __VA_ARGS__) 58# define MHD__gnutls_write_log(...) LEVEL_EQ(7, __VA_ARGS__)
59# define _gnutls_x509_log(...) LEVEL(1, __VA_ARGS__) 59# define MHD__gnutls_x509_log(...) LEVEL(1, __VA_ARGS__)
60#else 60#else
61# define _gnutls_debug_log _gnutls_null_log 61# define MHD__gnutls_debug_log MHD__gnutls_null_log
62# define _gnutls_handshake_log _gnutls_null_log 62# define MHD__gnutls_handshake_log MHD__gnutls_null_log
63# define _gnutls_io_log _gnutls_null_log 63# define MHD__gnutls_io_log MHD__gnutls_null_log
64# define _gnutls_buffers_log _gnutls_null_log 64# define MHD__gnutls_buffers_log MHD__gnutls_null_log
65# define _gnutls_hard_log _gnutls_null_log 65# define MHD__gnutls_hard_log MHD__gnutls_null_log
66# define _gnutls_record_log _gnutls_null_log 66# define MHD__gnutls_record_log MHD__gnutls_null_log
67# define _gnutls_read_log _gnutls_null_log 67# define MHD__gnutls_read_log MHD__gnutls_null_log
68# define _gnutls_write_log _gnutls_null_log 68# define MHD__gnutls_write_log MHD__gnutls_null_log
69# define _gnutls_x509_log _gnutls_null_log 69# define MHD__gnutls_x509_log MHD__gnutls_null_log
70 70
71void _gnutls_null_log (void *, ...); 71void MHD__gnutls_null_log (void *, ...);
72 72
73#endif /* C99_MACROS */ 73#endif /* C99_MACROS */