playing with crypto in handshake
This commit is contained in:
parent
71c26b9d31
commit
0312dd2f1c
|
@ -30,7 +30,7 @@ func ComposeCryptoParams() *packets.OutgoingPacket {
|
|||
|
||||
func ComposeSecretKey() *packets.OutgoingPacket {
|
||||
packet := packets.NewOutgoing(1)
|
||||
packet.WriteString("secretkey")
|
||||
packet.WriteString("dsfsfaefsadfdsffdshdsfgfdfdsafdasefasdfasdfsdgfdsgdsfgsdfgds")
|
||||
return packet
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ func InitCrypto(player *player.Player, packet *packets.IncomingPacket) {
|
|||
func GenerateKey(player *player.Player, packet *packets.IncomingPacket) {
|
||||
player.Session.Send(composers.ComposeAvailableSets())
|
||||
player.Session.Send(composers.ComposeEndCrypto())
|
||||
//player.Session.Send(composers.ComposeSecretKey())
|
||||
}
|
||||
|
||||
func GetSessionParams(player *player.Player, packet *packets.IncomingPacket) {
|
||||
|
@ -27,6 +28,10 @@ func UniqueID(player *player.Player, packet *packets.IncomingPacket) {
|
|||
|
||||
}
|
||||
|
||||
func SECRETKEY(player *player.Player, packets *packets.IncomingPacket) {
|
||||
player.Session.Send(composers.ComposeEndCrypto())
|
||||
}
|
||||
|
||||
func SSO(p *player.Player, packet *packets.IncomingPacket) {
|
||||
token := packet.ReadString()
|
||||
|
||||
|
|
Loading…
Reference in New Issue