Skip to content

Commit

Permalink
space monkey internal commit export
Browse files Browse the repository at this point in the history
[katamari commit: b476ea016d372f9735e59c175c4b3f3b0b053ead]
  • Loading branch information
jtolio committed Feb 28, 2014
1 parent fa8eb6a commit b94151d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ func (c *Conn) PeerCertificate() (*Certificate, error) {
return cert, nil
}

type ConnectionState struct {
Certificate *Certificate
CertificateError error
}

func (c *Conn) ConnectionState() (rv ConnectionState) {
rv.Certificate, rv.CertificateError = c.PeerCertificate()
return
}

func (c *Conn) shutdown() func() error {
c.mtx.Lock()
defer c.mtx.Unlock()
Expand Down

0 comments on commit b94151d

Please sign in to comment.