summaryrefslogtreecommitdiff
path: root/src/process.h
diff options
context:
space:
mode:
authorTed Zlatanov <tzz@lifelogs.com>2012-04-09 08:46:16 -0400
committerTed Zlatanov <tzz@lifelogs.com>2012-04-09 08:46:16 -0400
commita18ecafa99e7e7c3caa35ed68dd8a7b9b5d2b8e3 (patch)
tree51714f1203b0b06d44591f57f245ca7c94acde48 /src/process.h
parentb4d3bc10dc84f6b01a2b6b215d0e489555aa6edd (diff)
downloademacs-a18ecafa99e7e7c3caa35ed68dd8a7b9b5d2b8e3.tar.gz
Limit number of GnuTLS handshakes per connection.
* gnutls.c (gnutls_log_function2i): Convenience log function. (emacs_gnutls_read): Use new log functions, `gnutls_handshakes_tried' process member, and `GNUTLS_EMACS_HANDSHAKES_LIMIT' to limit the number of handshake attempts per process (connection). * gnutls.h: Add `GNUTLS_EMACS_HANDSHAKES_LIMIT' upper limit. Add convenience `GNUTLS_LOG2i' macro. * process.c (make_process): * process.h: Add integer `gnutls_handshakes_tried' member to process struct.
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 9efde261386..3eb94cb196b 100644
--- a/src/process.h
+++ b/src/process.h
@@ -134,6 +134,7 @@ struct Lisp_Process
gnutls_certificate_client_credentials gnutls_x509_cred;
gnutls_anon_client_credentials_t gnutls_anon_cred;
int gnutls_log_level;
+ int gnutls_handshakes_tried;
int gnutls_p;
#endif
};