X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ac6e085cf6b26257cfe181f17828432d414cb3a6..0a2aedfe6d650e825a50f25f972bac20d669f5cb:/src/gnutls.h diff --git a/src/gnutls.h b/src/gnutls.h index cb521350b9..41769a47f5 100644 --- a/src/gnutls.h +++ b/src/gnutls.h @@ -5,8 +5,8 @@ This file is part of GNU Emacs. GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -25,8 +25,9 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" -/* This limits the attempts to handshake per process (connection). */ -#define GNUTLS_EMACS_HANDSHAKES_LIMIT 100 +/* This limits the attempts to handshake per process (connection). It + should work out to about one minute in asynchronous cases. */ +#define GNUTLS_EMACS_HANDSHAKES_LIMIT 6000 typedef enum { @@ -70,7 +71,7 @@ typedef enum #define GNUTLS_LOG2i(level, max, string, extra) \ do { \ if ((level) <= (max)) \ - gnutls_log_function2i (level, "(Emacs) " string, extra); \ + message ("gnutls.c: [%d] %s %d", level, string, extra); \ } while (false) extern ptrdiff_t @@ -85,6 +86,7 @@ extern void emacs_gnutls_transport_set_errno (gnutls_session_t state, int err); extern Lisp_Object emacs_gnutls_deinit (Lisp_Object); extern Lisp_Object emacs_gnutls_global_init (void); extern int gnutls_try_handshake (struct Lisp_Process *p); +extern Lisp_Object gnutls_verify_boot (Lisp_Object proc, Lisp_Object proplist); #endif