chiark / gitweb /
journal-gatewayd: log to journal from gnutls
[elogind.git] / src / journal / microhttpd-util.h
index 74d1668bdfcce1e0038d95cde5e734f7b6cbd79b..4afe0a29d1f95f2df1cb72f611176eb12a2be354 100644 (file)
 #include "macro.h"
 
 void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0);
+
+#ifdef HAVE_GNUTLS
+#include <gnutls/gnutls.h>
+
+void log_func_gnutls(int level, const char *message);
+
+/* This is additionally filtered by our internal log level, so it
+ * should be set fairly high to capture all potentially interesting
+ * events without overwhelming detail.
+ */
+#define GNUTLS_LOG_LEVEL 6
+#endif