File: tls.el.html
This package implements a simple wrapper around "gnutls-cli" to make Emacs support TLS/SSL.
Usage is the same as open-network-stream, i.e.:
(setq tmp (open-tls-stream "test" (current-buffer) "news.mozilla.org" 563))
...
#<process test>
(process-send-string tmp "mode reader\\n")
200 secnews.netscape.com Netscape-Collabra/3.52 03615 NNRP ready ...
nil
(process-send-string tmp "quit\\n")
205
nil
To use this package as a replacement for ssl.el by William M. Perry
<wmperry@cs.indiana.edu>, you need to evaluate the following:
(defalias 'open-ssl-stream 'open-tls-stream)
Defined variables (8)
tls-certtool-program | Name of GnuTLS certtool. |
tls-checktrust | Indicate if certificates should be checked against trusted root certs. |
tls-end-of-info | Regexp matching end of TLS client informational messages. |
tls-hostmismatch | Regular expression indicating a host name mismatch in certificate. |
tls-process-connection-type | Value for ‘process-connection-type’ to use when starting TLS process. |
tls-program | List of strings containing commands to start TLS stream to a host. |
tls-success | Regular expression indicating completed TLS handshakes. |
tls-untrusted | Regular expression indicating failure of TLS certificate verification. |
Defined functions (2)
open-tls-stream | (NAME BUFFER HOST PORT) |
tls-certificate-information | (DER) |