From 5a942993dd12ae7d85b1633a58b0dc23f85832c2 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 14 Jun 2013 08:53:17 -0300 Subject: Hercules WPE Free Official Packet Obfuscation Support http://hercules.ws/board/topic/1105-hercules-wpe-free-june-14th-patch/ Signed-off-by: shennetsind --- src/map/clif.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/clif.h') diff --git a/src/map/clif.h b/src/map/clif.h index b447687ea..6e1fa81d3 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -462,6 +462,8 @@ struct clif_interface { struct hCSData **data[CASHSHOP_TAB_MAX]; unsigned int item_count[CASHSHOP_TAB_MAX]; } cs; + /* */ + unsigned int cryptKey[3]; /* core */ int (*init) (void); void (*final) (void); @@ -472,6 +474,8 @@ struct clif_interface { int (*send) (const void* buf, int len, struct block_list* bl, enum send_target type); int (*send_sub) (struct block_list *bl, va_list ap); int (*parse) (int fd); + unsigned short (*parse_cmd) ( int fd, struct map_session_data *sd ); + unsigned short (*decrypt_cmd) ( int cmd, struct map_session_data *sd ); /* auth */ void (*authok) (struct map_session_data *sd); void (*authrefuse) (int fd, uint8 error_code); -- cgit v1.2.3-60-g2f50