aboutsummaryrefslogtreecommitdiffstats
path: root/doc/credentials_manager.rst
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-12 22:00:11 +0000
committerlloyd <[email protected]>2012-07-12 22:00:11 +0000
commit389e815371681c5f076c0ff2563bf300789ff429 (patch)
tree266af42fc51d483a7ce57516cfba7a4afb34b84f /doc/credentials_manager.rst
parent43836c6fd15a944dce1ca25bb0d019ede3ef75e7 (diff)
Add an optional parameter to TLS::Client specifying the port number.
Pass this down into the session managers. Also document how to use session tickets with TLS servers.
Diffstat (limited to 'doc/credentials_manager.rst')
-rw-r--r--doc/credentials_manager.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/credentials_manager.rst b/doc/credentials_manager.rst
index b9718bf59..04e9e3f2e 100644
--- a/doc/credentials_manager.rst
+++ b/doc/credentials_manager.rst
@@ -122,6 +122,22 @@ authentication.
Return a symmetric key for use with *identity*
+ One important special case for ``psk`` is where *type* is
+ "tls-server", *context* is "session-ticket" and *identity* is an
+ empty string. If a key is returned for this case, a TLS server
+ will offer session tickets to clients who can use them, and the
+ returned key will be used to encrypt the ticket. The server is
+ allowed to change the key at any time (though changing the key
+ means old session tickets can no longer be used for resumption,
+ forcing a full re-handshake when the client next connects). One
+ simple approach to add support for session tickets in your server
+ is to generate a random key the first time ``psk`` is called to
+ retrieve the session ticket key, cache it for later use in the
+ ``Credentials_Manager``, and simply let it be thrown away when the
+ process terminates.
+
+ See :rfc:`4507` for more information about TLS session tickets.
+
.. cpp:function:: std::string psk_identity_hint(const std::string& type, \
const std::string& context)