pony_express v0.1.0 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
Functions
Callback implementation for c:PonyExpress.ConnectionAPI.handshake/2
.
Callback implementation for c:PonyExpress.ConnectionAPI.recv/3
.
Callback implementation for c:PonyExpress.ConnectionAPI.send/2
.
Callback implementation for c:PonyExpress.ConnectionAPI.upgrade/2
.
Link to this section Functions
handshake(sock, ssl_opts)
View Sourcehandshake(:inet.socket(), keyword()) :: :ssl.sslsocket()
Callback implementation for c:PonyExpress.ConnectionAPI.handshake/2
.
Callback implementation for c:PonyExpress.ConnectionAPI.recv/3
.
Callback implementation for c:PonyExpress.ConnectionAPI.send/2
.
upgrade(sock, ssl_opts)
View Sourceupgrade(:inet.socket(), keyword()) :: :ssl.sslsocket()
Callback implementation for c:PonyExpress.ConnectionAPI.upgrade/2
.