Mercurial > emacs
diff src/gnutls.h @ 110611:6c735824d0c1
Add gnutls logging and clean up various gnutls bits.
From: Teodor Zlatanov <tzz@lifelogs.com>
author | Lars Magne Ingebrigtsen <larsi@gnus.org> |
---|---|
date | Mon, 27 Sep 2010 18:44:31 +0200 |
parents | 9d94d76ce611 |
children | 256dd50b2a63 |
line wrap: on
line diff
--- a/src/gnutls.h Mon Sep 27 18:27:37 2010 +0200 +++ b/src/gnutls.h Mon Sep 27 18:44:31 2010 +0200 @@ -46,6 +46,8 @@ #define GNUTLS_PROCESS_USABLE(proc) (GNUTLS_INITSTAGE(proc) >= GNUTLS_STAGE_READY) +#define GNUTLS_LOG(level, max, string) if (level <= max) { gnutls_log_function (level, "(Emacs) " string); } + int emacs_gnutls_write (int fildes, gnutls_session_t state, char *buf, unsigned int nbyte);