1
0
Fork 0
forked from External/grumble

Enforce certhash-based bans and add strong certificate checking (non-working for now, crypto/tls doesn't verify client certificates)

This commit is contained in:
Mikkel Krautz 2011-11-12 23:55:33 +01:00
parent 0b1794f9b5
commit 1240fe3eb6
3 changed files with 55 additions and 20 deletions

View file

@ -1327,7 +1327,7 @@ func (server *Server) handleUserStatsMessage(client *Client, msg *Message) {
for i := len(state.PeerCertificates) - 1; i >= 0; i-- {
stats.Certificates = append(stats.Certificates, state.PeerCertificates[i].Raw)
}
// fixme(mkrautz): strong certificate checking
stats.StrongCertificate = proto.Bool(target.IsVerified())
}
}