mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-23 06:25:40 +00:00
comment out some unused ipv6rwc code
This commit is contained in:
parent
5b6d9d52f3
commit
fc632c5caa
@ -19,12 +19,14 @@ import (
|
|||||||
|
|
||||||
const keyStoreTimeout = 2 * time.Minute
|
const keyStoreTimeout = 2 * time.Minute
|
||||||
|
|
||||||
|
/*
|
||||||
// Out-of-band packet types
|
// Out-of-band packet types
|
||||||
const (
|
const (
|
||||||
typeKeyDummy = iota // nolint:deadcode,varcheck
|
typeKeyDummy = iota // nolint:deadcode,varcheck
|
||||||
typeKeyLookup
|
typeKeyLookup
|
||||||
typeKeyResponse
|
typeKeyResponse
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
|
|
||||||
type keyArray [ed25519.PublicKeySize]byte
|
type keyArray [ed25519.PublicKeySize]byte
|
||||||
|
|
||||||
@ -48,10 +50,12 @@ type keyInfo struct {
|
|||||||
timeout *time.Timer // From calling a time.AfterFunc to do cleanup
|
timeout *time.Timer // From calling a time.AfterFunc to do cleanup
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
type buffer struct {
|
type buffer struct {
|
||||||
packet []byte
|
packet []byte
|
||||||
timeout *time.Timer
|
timeout *time.Timer
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func (k *keyStore) init(c *core.Core) {
|
func (k *keyStore) init(c *core.Core) {
|
||||||
k.core = c
|
k.core = c
|
||||||
@ -219,6 +223,7 @@ func (k *keyStore) oobHandler(fromKey, toKey ed25519.PublicKey, data []byte) { /
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
func (k *keyStore) sendKeyLookup(partial ed25519.PublicKey) {
|
func (k *keyStore) sendKeyLookup(partial ed25519.PublicKey) {
|
||||||
sig := ed25519.Sign(k.core.PrivateKey(), partial[:])
|
sig := ed25519.Sign(k.core.PrivateKey(), partial[:])
|
||||||
bs := append([]byte{typeKeyLookup}, sig...)
|
bs := append([]byte{typeKeyLookup}, sig...)
|
||||||
@ -232,6 +237,7 @@ func (k *keyStore) sendKeyResponse(dest ed25519.PublicKey) { // nolint:unused
|
|||||||
//_ = k.core.SendOutOfBand(dest, bs)
|
//_ = k.core.SendOutOfBand(dest, bs)
|
||||||
_ = bs
|
_ = bs
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func (k *keyStore) readPC(p []byte) (int, error) {
|
func (k *keyStore) readPC(p []byte) (int, error) {
|
||||||
buf := make([]byte, k.core.MTU(), 65535)
|
buf := make([]byte, k.core.MTU(), 65535)
|
||||||
|
Loading…
Reference in New Issue
Block a user