mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 20:40:05 +00:00
CPunch
8092a636ca
- New packet, LAIKAPKT_PEER_LOGIN_REQ - All peers must prove they have access to the sent pubkey by passing a challenge. A salt is now sent on the handshake response packet, which must be encrypted and sent back through the PEER_LOGIN packet - Protcol minor version incremented to 0.4
20 lines
805 B
C
20 lines
805 B
C
#include "lpacket.h"
|
|
|
|
#ifdef DEBUG
|
|
const char *laikaD_getPacketName(LAIKAPKT_ID id)
|
|
{
|
|
const char *PKTNAMES[] = {"LAIKAPKT_VARPKT",
|
|
"LAIKAPKT_HANDSHAKE_REQ",
|
|
"LAIKAPKT_HANDSHAKE_RES",
|
|
"LAIKAPKT_PEER_LOGIN_REQ",
|
|
"LAIKAPKT_PINGPONG",
|
|
"LAIKAPKT_SHELL_OPEN",
|
|
"LAIKAPKT_SHELL_CLOSE",
|
|
"LAIKAPKT_SHELL_DATA",
|
|
"LAIKAPKT_AUTHENTICATED_ADD_PEER_RES",
|
|
"LAIKAPKT_AUTHENTICATED_RMV_PEER_RES",
|
|
"LAIKAPKT_AUTHENTICATED_SHELL_OPEN_REQ"};
|
|
|
|
return id >= LAIKAPKT_MAXNONE ? "LAIKAPKT_UNKNOWN" : PKTNAMES[id];
|
|
}
|
|
#endif |