diff options
author | Ted Zlatanov <tzz@lifelogs.com> | 2010-09-26 01:06:28 -0500 |
---|---|---|
committer | Ted Zlatanov <tzz@lifelogs.com> | 2010-09-26 01:06:28 -0500 |
commit | 8af55556e6cc093641dde5205aa5e295039b809f (patch) | |
tree | 2f0bebd6d170687acc470e4a1a030abd18daf651 /src/process.h | |
parent | 8ccbef23ea624d892bada3c66ef2339ada342997 (diff) |
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.
Diffstat (limited to 'src/process.h')
-rw-r--r-- | src/process.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 35b01aba6a..562d888f93 100644 --- a/src/process.h +++ b/src/process.h @@ -24,6 +24,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ #include <unistd.h> #endif +#ifdef HAVE_GNUTLS +#include "gnutls.h" +#endif + /* This structure records information about a subprocess or network connection. @@ -76,6 +80,10 @@ struct Lisp_Process /* Working buffer for encoding. */ Lisp_Object encoding_buf; +#ifdef HAVE_GNUTLS + Lisp_Object gnutls_cred_type; +#endif + /* After this point, there are no Lisp_Objects any more. */ /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ @@ -121,6 +129,13 @@ struct Lisp_Process needs to be synced to `status'. */ unsigned int raw_status_new : 1; int raw_status; + +#ifdef HAVE_GNUTLS + gnutls_initstage_t gnutls_initstage; + gnutls_session_t gnutls_state; + gnutls_certificate_client_credentials x509_cred; + gnutls_anon_client_credentials_t anon_cred; +#endif }; /* Every field in the preceding structure except for the first two |