mirror of https://github.com/cbeuw/Cloak
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
454 B
Go
24 lines
454 B
Go
package transports
|
|
|
|
import (
|
|
"crypto"
|
|
"github.com/cbeuw/Cloak/internal/common"
|
|
"net"
|
|
)
|
|
|
|
type Transport interface {
|
|
Handshake(rawConn net.Conn, authInfo AuthInfo) (sessionKey [32]byte, err error)
|
|
net.Conn
|
|
}
|
|
|
|
type AuthInfo struct {
|
|
UID []byte
|
|
SessionId uint32
|
|
ProxyMethod string
|
|
EncryptionMethod byte
|
|
Unordered bool
|
|
ServerPubKey crypto.PublicKey
|
|
MockDomain string
|
|
WorldState common.WorldState
|
|
}
|