Commit 9417ff55 authored by Filippo Valsorda's avatar Filippo Valsorda

crypto/tls: expand docs on client-side session ticket support

Users are sometimes confused why session tickets are not enabled even if
SessionTicketsDisabled is false.

Change-Id: I3b783d2cf3eed693a3ad6acb40a8003db7e0b648
Reviewed-on: https://go-review.googlesource.com/117255Reviewed-by: default avatarAdam Langley <agl@golang.org>
parent 8cf579ab
...@@ -459,7 +459,8 @@ type Config struct { ...@@ -459,7 +459,8 @@ type Config struct {
PreferServerCipherSuites bool PreferServerCipherSuites bool
// SessionTicketsDisabled may be set to true to disable session ticket // SessionTicketsDisabled may be set to true to disable session ticket
// (resumption) support. // (resumption) support. Note that on clients, session ticket support is
// also disabled if ClientSessionCache is nil.
SessionTicketsDisabled bool SessionTicketsDisabled bool
// SessionTicketKey is used by TLS servers to provide session // SessionTicketKey is used by TLS servers to provide session
...@@ -473,7 +474,7 @@ type Config struct { ...@@ -473,7 +474,7 @@ type Config struct {
SessionTicketKey [32]byte SessionTicketKey [32]byte
// ClientSessionCache is a cache of ClientSessionState entries for TLS // ClientSessionCache is a cache of ClientSessionState entries for TLS
// session resumption. // session resumption. It is only used by clients.
ClientSessionCache ClientSessionCache ClientSessionCache ClientSessionCache
// MinVersion contains the minimum SSL/TLS version that is acceptable. // MinVersion contains the minimum SSL/TLS version that is acceptable.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment