comparison src/gnutls.h @ 110648:256dd50b2a63

Make sure all reads/writes to gnutls streams go via the gnutls functions.
author Lars Magne Ingebrigtsen <larsi@gnus.org>
date Wed, 29 Sep 2010 14:48:29 +0200
parents 6c735824d0c1
children af2db97ca17a
comparison
equal deleted inserted replaced
110647:c294bdb9cef3 110648:256dd50b2a63
47 #define GNUTLS_PROCESS_USABLE(proc) (GNUTLS_INITSTAGE(proc) >= GNUTLS_STAGE_READY) 47 #define GNUTLS_PROCESS_USABLE(proc) (GNUTLS_INITSTAGE(proc) >= GNUTLS_STAGE_READY)
48 48
49 #define GNUTLS_LOG(level, max, string) if (level <= max) { gnutls_log_function (level, "(Emacs) " string); } 49 #define GNUTLS_LOG(level, max, string) if (level <= max) { gnutls_log_function (level, "(Emacs) " string); }
50 50
51 int 51 int
52 emacs_gnutls_write (int fildes, gnutls_session_t state, char *buf, 52 emacs_gnutls_write (int fildes, struct Lisp_Process *proc, char *buf,
53 unsigned int nbyte); 53 unsigned int nbyte);
54 int 54 int
55 emacs_gnutls_read (int fildes, gnutls_session_t state, char *buf, 55 emacs_gnutls_read (int fildes, struct Lisp_Process *proc, char *buf,
56 unsigned int nbyte); 56 unsigned int nbyte);
57 57
58 extern void syms_of_gnutls (void); 58 extern void syms_of_gnutls (void);
59 59
60 #endif 60 #endif