/* GnuTLS */
#include <gnutls/gnutls.h>
+#include "log.h"
-/* Log level constants. */
-#define LOG_ERROR 0
-#define LOG_WARNING 1
-#define LOG_DEBUG 2
-/* Macros for shorter error handling. */
-#define GNUTLS_ERROR_EXIT(error, message) \
- if (GNUTLS_E_SUCCESS != error) { \
- fprintf(stderr, "%s: %s\n", message, gnutls_strerror(error)); \
- exit(EXIT_FAILURE); \
- }
-
/* Proxy hostname and port if specified on the command line. */
char *global_proxy_host;