mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: add server-side OCSP stapling support.
We already had support on the client side. I also changed the name of the flag in the ServerHello structure to match the name of the same flag in the ClientHello (ocspStapling). R=bradfitzgo CC=golang-dev https://golang.org/cl/4408044
This commit is contained in:
parent
e27702545a
commit
6f921f22ae
4 changed files with 20 additions and 6 deletions
|
|
@ -178,6 +178,9 @@ func (c *Config) cipherSuites() []uint16 {
|
|||
type Certificate struct {
|
||||
Certificate [][]byte
|
||||
PrivateKey *rsa.PrivateKey
|
||||
// OCSPStaple contains an optional OCSP response which will be served
|
||||
// to clients that request it.
|
||||
OCSPStaple []byte
|
||||
}
|
||||
|
||||
// A TLS record.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue