pony_express v0.2.1 PonyExpress.Tls View Source
default module for dropping in TLS over the erlang sockets library.
the TLS protocol has a very convienient way of upgrading to an SSL
connection. This enables the use of the common :gen_tcp
library except:
on the server side, a
handshake
directive allows the client to negotiate an upgrade to a securetls
connection. Although tls does support one-way encryption, sincePonyExpress
requires two-way encryption, the handshake enforces peer verfication.on the client side, an
upgrade
directive which negotiates an unencrypted:tcp
socket's connection to an encryptedtls
connection.
Link to this section Summary
Link to this section Functions
Link to this function
handshake(sock, ssl_opts)
View Sourcehandshake(:inet.socket(), keyword()) :: :ssl.sslsocket()
See :ssl.recv/3
.
See :ssl.send/2
.
Link to this function
upgrade(sock, ssl_opts)
View Sourceupgrade(:inet.socket(), keyword()) :: :ssl.sslsocket()