mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-08 10:00:19 +08:00
Improved cookie/mac computation code
This commit is contained in:
@@ -29,3 +29,9 @@ func (kp *KeyPairs) Current() *KeyPair {
|
||||
defer kp.mutex.RUnlock()
|
||||
return kp.current
|
||||
}
|
||||
|
||||
func (device *Device) DeleteKeyPair(key *KeyPair) {
|
||||
key.send = nil
|
||||
key.receive = nil
|
||||
device.indices.Delete(key.localIndex)
|
||||
}
|
||||
|
Reference in New Issue
Block a user