--- sourceforge.net/trunk/rdesktop/proto.h 2002/11/18 18:12:49 263 +++ sourceforge.net/trunk/rdesktop/proto.h 2003/03/27 13:33:16 353 @@ -1,6 +1,6 @@ /* bitmap.c */ -BOOL bitmap_decompress(unsigned char *output, int width, int height, unsigned char *input, - int size); +BOOL bitmap_decompress(unsigned char *output, int width, int height, unsigned char *input, int size, + int Bpp); /* cache.c */ HBITMAP cache_get_bitmap(uint8 cache_id, uint16 cache_idx); void cache_put_bitmap(uint8 cache_id, uint16 cache_idx, HBITMAP bitmap); @@ -20,18 +20,18 @@ STREAM iso_init(int length); void iso_send(STREAM s); STREAM iso_recv(void); -BOOL iso_connect(char *server); +BOOL iso_connect(char *server, char *username); void iso_disconnect(void); /* licence.c */ void licence_process(STREAM s); /* mcs.c */ STREAM mcs_init(int length); void mcs_send(STREAM s); -STREAM mcs_recv(void); -BOOL mcs_connect(char *server, STREAM mcs_data); +STREAM mcs_recv(uint16 * channel); +BOOL mcs_connect(char *server, STREAM mcs_data, char *username); void mcs_disconnect(void); /* orders.c */ -void process_orders(STREAM s); +void process_orders(STREAM s, uint16 count); void reset_order_state(void); /* rdesktop.c */ int main(int argc, char *argv[]); @@ -40,16 +40,27 @@ void *xrealloc(void *oldmem, int size); void xfree(void *mem); void error(char *format, ...); +void warning(char *format, ...); void unimpl(char *format, ...); void hexdump(unsigned char *p, unsigned int len); +int load_licence(unsigned char **data); +void save_licence(unsigned char *data, int length); /* rdp.c */ void rdp_out_unistr(STREAM s, char *string, int len); void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1, uint16 param2); +void process_bitmap_updates(STREAM s); +void process_colour_pointer_pdu(STREAM s); +void process_cached_pointer_pdu(STREAM s); +void process_null_system_pointer_pdu(STREAM s); +void process_palette(STREAM s); void rdp_main_loop(void); BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command, char *directory); void rdp_disconnect(void); +/* rdp5.c */ +void rdp5_process(STREAM s, BOOL encryption, BOOL shortform); +void rdp5_process_channel(STREAM s, uint16 channel); /* secure.c */ void sec_hash_48(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2, uint8 salt); void sec_hash_16(uint8 * out, uint8 * in, uint8 * salt1, uint8 * salt2); @@ -59,8 +70,10 @@ STREAM sec_init(uint32 flags, int maxlen); void sec_send(STREAM s, uint32 flags); STREAM sec_recv(void); -BOOL sec_connect(char *server); +BOOL sec_connect(char *server, char *username); void sec_disconnect(void); +void sec_process_mcs_data(STREAM s); +void sec_decrypt(uint8 * data, int length); /* tcp.c */ STREAM tcp_init(int maxlen); void tcp_send(STREAM s); @@ -77,14 +90,13 @@ void reset_modifier_keys(unsigned int state); void rdp_send_scancode(uint32 time, uint16 flags, uint8 scancode); /* xwin.c */ -void mwm_hide_decorations(void); BOOL get_key_state(unsigned int state, uint32 keysym); BOOL ui_init(void); void ui_deinit(void); BOOL ui_create_window(void); void ui_destroy_window(void); void xwin_toggle_fullscreen(void); -void ui_select(int rdp_socket); +int ui_select(int rdp_socket); void ui_move_pointer(int x, int y); HBITMAP ui_create_bitmap(int width, int height, uint8 * data); void ui_paint_bitmap(int x, int y, int cx, int cy, int width, int height, uint8 * data);