mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 21:06:52 +01:00
Run hybrid handshakes: v3 holders initiate them, responders wait for msg3, initiators resend it until confirmed
This commit is contained in:
1 parent
5c5254dc18
commit
b26c1e9c3e
8 files changed
+913
-36
No files matched your search
@@ -134,6 +134,12 @@ func (m *Machine) Subtype() header.MessageSubType {
|
||||
return m.subtype
|
||||
}
|
||||
|
||||
// PeerCert returns the peer's verified certificate once a message carrying it
|
||||
// has been read, which for a three message pattern is before completion.
|
||||
func (m *Machine) PeerCert() *cert.CachedCertificate {
|
||||
return m.result.RemoteCert
|
||||
}
|
||||
|
||||
// MessageIndex returns the noise handshake message index, which equals the
|
||||
// wire counter of the most recently sent or received message.
|
||||
func (m *Machine) MessageIndex() int {
|
||||
|
||||
Reference in new issue
Block a user