mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
tls: move PeerCertificates to ConnectionState
R=agl, agl1 CC=golang-dev, rsc https://golang.org/cl/4248078
This commit is contained in:
parent
dd5adcc3c3
commit
dc06ad5ad7
2 changed files with 5 additions and 9 deletions
|
|
@ -7,6 +7,7 @@ package tls
|
|||
import (
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/x509"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"sync"
|
||||
|
|
@ -95,6 +96,9 @@ type ConnectionState struct {
|
|||
HandshakeComplete bool
|
||||
CipherSuite uint16
|
||||
NegotiatedProtocol string
|
||||
|
||||
// the certificate chain that was presented by the other side
|
||||
PeerCertificates []*x509.Certificate
|
||||
}
|
||||
|
||||
// A Config structure is used to configure a TLS client or server. After one
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue