diff options
| author | Ted Zlatanov | 2010-09-26 01:06:28 -0500 |
|---|---|---|
| committer | Ted Zlatanov | 2010-09-26 01:06:28 -0500 |
| commit | 8af55556e6cc093641dde5205aa5e295039b809f (patch) | |
| tree | 2f0bebd6d170687acc470e4a1a030abd18daf651 /src/process.h | |
| parent | 8ccbef23ea624d892bada3c66ef2339ada342997 (diff) | |
| download | emacs-8af55556e6cc093641dde5205aa5e295039b809f.tar.gz emacs-8af55556e6cc093641dde5205aa5e295039b809f.zip | |
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 35b01aba6a4..562d888f93f 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/>. */ | |||
| 24 | #include <unistd.h> | 24 | #include <unistd.h> |
| 25 | #endif | 25 | #endif |
| 26 | 26 | ||
| 27 | #ifdef HAVE_GNUTLS | ||
| 28 | #include "gnutls.h" | ||
| 29 | #endif | ||
| 30 | |||
| 27 | /* This structure records information about a subprocess | 31 | /* This structure records information about a subprocess |
| 28 | or network connection. | 32 | or network connection. |
| 29 | 33 | ||
| @@ -76,6 +80,10 @@ struct Lisp_Process | |||
| 76 | /* Working buffer for encoding. */ | 80 | /* Working buffer for encoding. */ |
| 77 | Lisp_Object encoding_buf; | 81 | Lisp_Object encoding_buf; |
| 78 | 82 | ||
| 83 | #ifdef HAVE_GNUTLS | ||
| 84 | Lisp_Object gnutls_cred_type; | ||
| 85 | #endif | ||
| 86 | |||
| 79 | /* After this point, there are no Lisp_Objects any more. */ | 87 | /* After this point, there are no Lisp_Objects any more. */ |
| 80 | /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ | 88 | /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ |
| 81 | 89 | ||
| @@ -121,6 +129,13 @@ struct Lisp_Process | |||
| 121 | needs to be synced to `status'. */ | 129 | needs to be synced to `status'. */ |
| 122 | unsigned int raw_status_new : 1; | 130 | unsigned int raw_status_new : 1; |
| 123 | int raw_status; | 131 | int raw_status; |
| 132 | |||
| 133 | #ifdef HAVE_GNUTLS | ||
| 134 | gnutls_initstage_t gnutls_initstage; | ||
| 135 | gnutls_session_t gnutls_state; | ||
| 136 | gnutls_certificate_client_credentials x509_cred; | ||
| 137 | gnutls_anon_client_credentials_t anon_cred; | ||
| 138 | #endif | ||
| 124 | }; | 139 | }; |
| 125 | 140 | ||
| 126 | /* Every field in the preceding structure except for the first two | 141 | /* Every field in the preceding structure except for the first two |