Преглед на файлове

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/117255
Reviewed-by: Adam Langley <agl@golang.org>
v1.2.3
Filippo Valsorda преди 6 години
committed by Kris Kwiatkowski
родител
ревизия
d20745552c
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +3
    -2
      common.go

+ 3
- 2
common.go Целия файл

@@ -547,7 +547,8 @@ type Config struct {
PreferServerCipherSuites bool

// 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

// SessionTicketKey is used by TLS servers to provide session
@@ -561,7 +562,7 @@ type Config struct {
SessionTicketKey [32]byte

// ClientSessionCache is a cache of ClientSessionState entries for TLS
// session resumption.
// session resumption. It is only used by clients.
ClientSessionCache ClientSessionCache

// MinVersion contains the minimum SSL/TLS version that is acceptable.


Зареждане…
Отказ
Запис