mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-04-25 17:50:23 +08:00
space monkey internal commit export
[katamari commit: e83c1c725d54438eea74343bfd6b3d2e2f3c9761]
This commit is contained in:
parent
b94151d9ec
commit
6993541398
8
conn.go
8
conn.go
@ -246,13 +246,13 @@ func (c *Conn) PeerCertificate() (*Certificate, error) {
|
||||
}
|
||||
|
||||
type ConnectionState struct {
|
||||
Certificate *Certificate
|
||||
CertificateError error
|
||||
Certificate *Certificate
|
||||
CertificateError error
|
||||
}
|
||||
|
||||
func (c *Conn) ConnectionState() (rv ConnectionState) {
|
||||
rv.Certificate, rv.CertificateError = c.PeerCertificate()
|
||||
return
|
||||
rv.Certificate, rv.CertificateError = c.PeerCertificate()
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Conn) shutdown() func() error {
|
||||
|
Loading…
Reference in New Issue
Block a user