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-programName of GnuTLS certtool.
tls-checktrustIndicate if certificates should be checked against trusted root certs.
tls-end-of-infoRegexp matching end of TLS client informational messages.
tls-hostmismatchRegular expression indicating a host name mismatch in certificate.
tls-process-connection-typeValue for ‘process-connection-type’ to use when starting TLS process.
tls-programList of strings containing commands to start TLS stream to a host.
tls-successRegular expression indicating completed TLS handshakes.
tls-untrustedRegular expression indicating failure of TLS certificate verification.

Defined functions (2)

open-tls-stream(NAME BUFFER HOST PORT)
tls-certificate-information(DER)

Defined faces (0)