summaryrefslogtreecommitdiff
path: root/src/gnutls.c
Commit message (Collapse)AuthorAgeFilesLines
* (emacs_gnutls_read): Return 0 if we get a non-"EAGAIN"-like error to signal ↵Lars Magne Ingebrigtsen2010-10-181-2/+7
| | | | to Emacs that the socket should be closed.
* Fix gnutls write-before-negotiation case.Lars Magne Ingebrigtsen2010-10-101-1/+8
| | | | | * gnutls.c (emacs_gnutls_write): If we're trying to write before gnutls is ready, return EAGAIN as the errno.
* (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.Lars Magne Ingebrigtsen2010-10-091-2/+2
| | | | | According to the documentation, this is correct, and it seems to make things work.
* Make emacs_gnutls_read() return the expected on errors.Lars Magne Ingebrigtsen2010-10-091-7/+6
| | | | Also interface cleanups.
* Rework the gnutls boot interface.Lars Magne Ingebrigtsen2010-10-041-37/+116
| | | | From Teodor Zlatanov.
* src/gnutls.c: Fix typo in docstring.Juanma Barranquero2010-10-031-4/+4
|
* src/gnutls.c: Doc fixes. Make some functions static.Juanma Barranquero2010-10-031-31/+38
| | | | | | | | | (emacs_gnutls_handshake, gnutls_make_error, gnutls_emacs_global_init) (gnutls_emacs_global_deinit): Make static. (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye): Fix typos in docstrings. (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes. (Fgnutls_errorp): Doc fix; use ERR for the argument name.
* Clean up gnutls.c coding style to conform with the Emacs style.Lars Magne Ingebrigtsen2010-09-291-84/+78
| | | | | Remove some debugging messages. Cast some parameters to avoid compilation warnings.
* Do the gnutls handshake from the reader loop, instead of looping overLars Magne Ingebrigtsen2010-09-291-56/+34
| | | | the handshake from Emacs Lisp.
* Make sure all reads/writes to gnutls streams go via the gnutls functions.Lars Magne Ingebrigtsen2010-09-291-6/+15
|
* * src/gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.Stefan Monnier2010-09-281-5/+4
| | | | | (Fgnutls_boot): Use SDATA. (Fgnutls_handshake): Remove unused var `max_log_level'.
* Add gnutls logging and clean up various gnutls bits.Lars Magne Ingebrigtsen2010-09-271-14/+43
| | | | From: Teodor Zlatanov <tzz@lifelogs.com>
* (emacs_gnutls_read): Don't infloop while reading.Lars Magne Ingebrigtsen2010-09-271-8/+7
|
* Add debugging to the gnutls library, and finish handshaking when it's done.Lars Magne Ingebrigtsen2010-09-271-29/+9
|
* Set up GnuTLS support.Ted Zlatanov2010-09-261-0/+551
* configure.in: Set up GnuTLS. * lisp/net/gnutls.el: GnuTLS glue code to set up a connection. * src/Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS) (obj, LIBES): Set up GnuTLS support. * src/config.in: Set up GnuTLS support. * src/emacs.c: Set up GnuTLS support and call syms_of_gnutls. * src/gnutls.c: The source code for GnuTLS support in Emacs. * src/gnutls.h: The GnuTLS glue for Emacs, macros and enums. * src/process.c (make_process, Fstart_process) (read_process_output, send_process): Set up GnuTLS support for process input/output file descriptors. * src/process.h: Set up GnuTLS support.