1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Ted Zlatanov
48e79d6a80 Use CL-style keyword arguments for `gnutls-negotiate' and allow :keylist and :crlfiles arguments.
* lisp/net/gnutls.el (gnutls-negotiate): Use CL-style keyword arguments
instead of positional arguments.  Allow :keylist and :crlfiles
arguments.
(open-gnutls-stream): Call it.

* lisp/net/network-stream.el (network-stream-open-starttls): Adjust to
call `gnutls-negotiate' with :process and :hostname arguments.
2011-05-03 20:44:58 -05:00
Juanma Barranquero
cd22b309b4 lisp/net/gnutls.el (gnutls-errorp): Declare before first use. 2011-04-25 15:47:23 +02:00
Ted Zlatanov
8b492194a9 Bug fixes and certificate and hostname verification for the Emacs GnuTLS support.
* lisp/net/gnutls.el (gnutls-negotiate): Add hostname, verify-flags,
verify-error, and verify-hostname-error parameters.  Check whether
default trustfile exists before going to use it. Add missing
argument to gnutls-message-maybe call. Return return value.
Reported by Claudio Bley <claudio.bley@gmail.com>.
(open-gnutls-stream): Add usage example.

* lisp/net/network-stream.el (network-stream-open-starttls): Give host
parameter to `gnutls-negotiate'.
(gnutls-negotiate): Adjust `gnutls-negotiate' declaration.
2011-04-24 20:31:45 -05:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
d0d4361dba Add 2011 to remaining FSF/AIST copyright years. 2011-01-15 14:10:37 -08:00
Romain Francoise
bc5576723b * net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles. 2010-12-13 23:20:32 +01:00
Glenn Morris
c3dfebd128 * net/gnutls.el (gnutls-boot, gnutls-errorp, gnutls-error-string): Declare. 2010-10-31 22:53:15 -07:00
Ted Zlatanov
8762aa1038 Provide GnuTLS API with gnutls-negotiate' and open-gnutls-stream'.
* net/gnutls.el: Improve docs.        Remove starttls and ssl emulation.
Provide only `open-gnutls-stream' (formerly `open-ssl-stream') and
`gnutls-negotiate' (formerly `starttls-negotiate').  Remove
trivial wrapper `starttls-open-stream'.
2010-10-03 20:16:00 -05:00
Lars Magne Ingebrigtsen
c1ae068bbb Rework the gnutls boot interface.
From Teodor Zlatanov.
2010-10-04 00:37:37 +02:00
Lars Magne Ingebrigtsen
bac5cef8cc Do the gnutls handshake from the reader loop, instead of looping over
the handshake from Emacs Lisp.
2010-09-29 15:25:24 +02:00
Lars Magne Ingebrigtsen
df7fcafff0 Make sure all reads/writes to gnutls streams go via the gnutls functions. 2010-09-29 14:48:29 +02:00
Lars Magne Ingebrigtsen
8ed70bf316 Add gnutls logging and clean up various gnutls bits.
From: Teodor Zlatanov  <tzz@lifelogs.com>
2010-09-27 18:44:31 +02:00
Lars Magne Ingebrigtsen
d2e9d0bbb2 Add debugging to the gnutls library, and finish handshaking when it's done. 2010-09-27 16:35:22 +02:00
Lars Magne Ingebrigtsen
6303aba122 (starttls-negotiate): Avoid the cl.el decf function. 2010-09-26 17:30:44 +02:00
Ted Zlatanov
8af55556e6 Set up GnuTLS support.
* 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.
2010-09-26 01:06:28 -05:00