aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-01-08 12:57:15 +0000
committerlloyd <[email protected]>2015-01-08 12:57:15 +0000
commite1d118f4973e2d5f58971acfb8aa28f4fc3085e2 (patch)
tree27f6b90c8e87ed000ce2c0540e4bcab63891a730 /doc/manual
parenta62473b5f0a893db620d8658d75374a50a67e496 (diff)
Change TLS session encryption to use AES-256/GCM instead of CBC+HMAC
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/tls.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/manual/tls.rst b/doc/manual/tls.rst
index 0faf9e4d4..b3ec1c0ea 100644
--- a/doc/manual/tls.rst
+++ b/doc/manual/tls.rst
@@ -81,6 +81,7 @@ available:
.. cpp:class:: TLS::Channel
.. cpp:function:: size_t received_data(const byte buf[], size_t buf_size)
+ .. cpp:function:: size_t received_data(const std::vector<byte>& buf)
This function is used to provide data sent by the counterparty
(eg data that you read off the socket layer). Depending on the
@@ -94,6 +95,8 @@ available:
will return 0 instead.
.. cpp:function:: void send(const byte buf[], size_t buf_size)
+ .. cpp:function:: void send(const std::string& str)
+ .. cpp:function:: void send(const std::vector<byte>& vec)
Create one or more new TLS application records containing the
provided data and send them. This will eventually result in at
@@ -173,7 +176,6 @@ available:
Per :rfc:`5705`, *label* should begin with "EXPERIMENTAL" unless
the label has been standardized in an RFC.
-
.. _tls_client:
TLS Clients
@@ -184,7 +186,7 @@ TLS Clients
.. cpp:function:: TLS::Client( \
std::function<void, const byte*, size_t> output_fn, \
std::function<void, const byte*, size_t> data_cb, \
- std::function<TLS::Alert, const byte*, size_t> alert_cb,
+ std::function<TLS::Alert, const byte*, size_t> alert_cb, \
std::function<bool, const TLS::Session&> handshake_cb, \
TLS::Session_Manager& session_manager, \
Credentials_Manager& credendials_manager, \
@@ -279,7 +281,7 @@ TLS Servers
.. cpp:function:: TLS::Server( \
std::function<void, const byte*, size_t> output_fn, \
std::function<void, const byte*, size_t> data_cb, \
- std::function<TLS::Alert, const byte*, size_t> alert_cb,
+ std::function<TLS::Alert, const byte*, size_t> alert_cb, \
TLS::Session_Manager& session_manager, \
Credentials_Manager& creds, \
const TLS::Policy& policy, \