Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

proto.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BOOL bitmap_decompress (unsigned char *output, int width, int height, unsigned char *input, int size, int Bpp)
HBITMAP cache_get_bitmap (uint8 cache_id, uint16 cache_idx)
void cache_put_bitmap (uint8 cache_id, uint16 cache_idx, HBITMAP bitmap)
FONTGLYPHcache_get_font (uint8 font, uint16 character)
void cache_put_font (uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap)
DATABLOBcache_get_text (uint8 cache_id)
void cache_put_text (uint8 cache_id, void *data, int length)
uint8cache_get_desktop (uint32 offset, int cx, int cy, int bytes_per_pixel)
void cache_put_desktop (uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel, uint8 *data)
HCURSOR cache_get_cursor (uint16 cache_idx)
void cache_put_cursor (uint16 cache_idx, HCURSOR cursor)
int get_current_workarea (uint32 *x, uint32 *y, uint32 *width, uint32 *height)
STREAM iso_init (int length)
void iso_send (STREAM s)
STREAM iso_recv (void)
BOOL iso_connect (char *server)
void iso_disconnect (void)
void licence_process (STREAM s)
STREAM mcs_init (int length)
void mcs_send (STREAM s)
STREAM mcs_recv (void)
BOOL mcs_connect (char *server, STREAM mcs_data)
void mcs_disconnect (void)
void process_orders (STREAM s)
void reset_order_state (void)
int main (int argc, char *argv[])
void generate_random (uint8 *random)
void * xmalloc (int size)
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)
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)
BOOL rdp_main_loop (void)
BOOL rdp_connect (char *server, uint32 flags, char *domain, char *password, char *command, char *directory)
void rdp_disconnect (void)
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)
void buf_out_uint32 (uint8 *buffer, uint32 value)
void sec_sign (uint8 *signature, int siglen, uint8 *session_key, int keylen, uint8 *data, int datalen)
STREAM sec_init (uint32 flags, int maxlen)
void sec_send (STREAM s, uint32 flags)
STREAM sec_recv (void)
BOOL sec_connect (char *server)
void sec_disconnect (void)
STREAM tcp_init (unsigned int maxlen)
void tcp_send (STREAM s)
STREAM tcp_recv (unsigned int length)
BOOL tcp_connect (char *server)
void tcp_disconnect (void)
void xkeymap_init (void)
BOOL handle_special_keys (uint32 keysym, unsigned int state, uint32 ev_time, BOOL pressed)
key_translation xkeymap_translate_key (uint32 keysym, unsigned int keycode, unsigned int state)
uint16 xkeymap_translate_button (unsigned int button)
char * get_ksname (uint32 keysym)
void ensure_remote_modifiers (uint32 ev_time, key_translation tr)
void reset_modifier_keys (unsigned int state)
void rdp_send_scancode (uint32 time, uint16 flags, uint8 scancode)
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)
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)
void ui_destroy_bitmap (HBITMAP bmp)
HGLYPH ui_create_glyph (int width, int height, uint8 *data)
void ui_destroy_glyph (HGLYPH glyph)
HCURSOR ui_create_cursor (unsigned int x, unsigned int y, int width, int height, uint8 *andmask, uint8 *xormask)
void ui_set_cursor (HCURSOR cursor)
void ui_destroy_cursor (HCURSOR cursor)
HCOLOURMAP ui_create_colourmap (COLOURMAP *colours)
void ui_destroy_colourmap (HCOLOURMAP map)
void ui_set_colourmap (HCOLOURMAP map)
void ui_begin_update (void)
void ui_end_update (void)
void ui_set_clip (int x, int y, int cx, int cy)
void ui_reset_clip (void)
void ui_bell (void)
void ui_destblt (uint8 opcode, int x, int y, int cx, int cy)
void ui_patblt (uint8 opcode, int x, int y, int cx, int cy, BRUSH *brush, int bgcolour, int fgcolour)
void ui_screenblt (uint8 opcode, int x, int y, int cx, int cy, int srcx, int srcy)
void ui_memblt (uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy)
void ui_triblt (uint8 opcode, int x, int y, int cx, int cy, HBITMAP src, int srcx, int srcy, BRUSH *brush, int bgcolour, int fgcolour)
void ui_line (uint8 opcode, int startx, int starty, int endx, int endy, PEN *pen)
void ui_rect (int x, int y, int cx, int cy, int colour)
void ui_draw_text (uint8 font, uint8 flags, int mixmode, int x, int y, int clipx, int clipy, int clipcx, int clipcy, int boxx, int boxy, int boxcx, int boxcy, int bgcolour, int fgcolour, uint8 *text, uint8 length)
void ui_desktop_save (uint32 offset, int x, int y, int cx, int cy)
void ui_desktop_restore (uint32 offset, int x, int y, int cx, int cy)


Function Documentation

BOOL bitmap_decompress unsigned char *  output,
int  width,
int  height,
unsigned char *  input,
int  size,
int  Bpp
 

Definition at line 71 of file bitmap.cpp.

References code, CVAL, cvalx(), end, False, getli(), MASK_UPDATE, NULL, REPEAT, setli(), True, unimpl(), and Opie::MM::x.

Referenced by process_bitmap_updates(), and process_bmpcache().

void buf_out_uint32 uint8 buffer,
uint32  value
 

Definition at line 173 of file secure.cpp.

Referenced by licence_generate_hwid(), and sec_sign().

HBITMAP cache_get_bitmap uint8  cache_id,
uint16  cache_idx
 

Definition at line 31 of file cache.cpp.

References bmpcache, error(), NULL, and NUM_ELEMENTS.

Referenced by process_memblt(), and process_triblt().

HCURSOR cache_get_cursor uint16  cache_idx  ) 
 

Definition at line 202 of file cache.cpp.

References cursorcache, error(), NULL, and NUM_ELEMENTS.

Referenced by process_pointer_pdu().

uint8* cache_get_desktop uint32  offset,
int  cx,
int  cy,
int  bytes_per_pixel
 

Definition at line 161 of file cache.cpp.

References deskcache, error(), and NULL.

Referenced by ui_desktop_restore().

FONTGLYPH* cache_get_font uint8  font,
uint16  character
 

Definition at line 72 of file cache.cpp.

References error(), NULL, NUM_ELEMENTS, and _FONTGLYPH::pixmap.

DATABLOB* cache_get_text uint8  cache_id  ) 
 

Definition at line 118 of file cache.cpp.

References _DATABLOB::data, error(), NULL, NUM_ELEMENTS, and text.

Referenced by ui_draw_text().

void cache_put_bitmap uint8  cache_id,
uint16  cache_idx,
HBITMAP  bitmap
 

Definition at line 48 of file cache.cpp.

References bmpcache, error(), NULL, NUM_ELEMENTS, and ui_destroy_bitmap().

Referenced by process_bmpcache(), and process_raw_bmpcache().

void cache_put_cursor uint16  cache_idx,
HCURSOR  cursor
 

Definition at line 219 of file cache.cpp.

References cursorcache, error(), NULL, NUM_ELEMENTS, and ui_destroy_cursor().

Referenced by process_pointer_pdu().

void cache_put_desktop uint32  offset,
int  cx,
int  cy,
int  scanline,
int  bytes_per_pixel,
uint8 data
 

Definition at line 176 of file cache.cpp.

References deskcache, and error().

Referenced by ui_desktop_save().

void cache_put_font uint8  font,
uint16  character,
uint16  offset,
uint16  baseline,
uint16  width,
uint16  height,
HGLYPH  pixmap
 

Definition at line 89 of file cache.cpp.

References _FONTGLYPH::baseline, error(), _FONTGLYPH::height, NULL, NUM_ELEMENTS, _FONTGLYPH::offset, _FONTGLYPH::pixmap, ui_destroy_glyph(), and _FONTGLYPH::width.

Referenced by process_fontcache().

void cache_put_text uint8  cache_id,
void *  data,
int  length
 

Definition at line 135 of file cache.cpp.

References _DATABLOB::data, error(), NULL, NUM_ELEMENTS, _DATABLOB::size, text, xfree(), and xmalloc().

Referenced by ui_draw_text().

void ensure_remote_modifiers uint32  ev_time,
key_translation  tr
 

void error char *  format,
  ...
 

Definition at line 110 of file rdesktop.cpp.

Referenced by CMap::addCIDs(), Stream::addFilters(), ber_parse_header(), Gfx::buildImageStream(), cache_get_bitmap(), cache_get_cursor(), cache_get_desktop(), cache_get_font(), cache_get_text(), cache_put_bitmap(), cache_put_cursor(), cache_put_desktop(), cache_put_font(), cache_put_text(), Catalog::Catalog(), XRef::checkEncrypted(), PDFDoc::checkHeader(), PSStack::checkOverflow(), PSStack::checkType(), PSStack::checkUnderflow(), XRef::constructXRef(), Interfaces::copyInterface(), CMap::copyVector(), KMolCalc::defineGroup(), DemoApp::DemoApp(), Server::desktopMessage(), Gfx::display(), Gfx::doAnnot(), Gfx::doForm(), Gfx::doImage(), QMakeProject::doProjectCheckReqs(), Gfx::doShowText(), DateBook::duplicateEvent(), DateBook::editEvent(), PostScriptFunction::exec(), Process::exec(), Gfx::execOp(), ExponentialFunction::ExponentialFunction(), Catalog::findDest(), QLibraryPrivate::freeLibrary(), CCITTFaxStream::getBlackCode(), getFileSpecName(), FlateStream::getHuffmanCodeWord(), Parser::getObj(), Lexer::getObj(), Stream::getRawChar(), EmbedStream::getStart(), getStocks(), CCITTFaxStream::getTwoDimCode(), CCITTFaxStream::getWhiteCode(), Gfx8BitFont::Gfx8BitFont(), GfxCIDFont::GfxCIDFont(), GfxFontDict::GfxFontDict(), GfxTilingPattern::GfxTilingPattern(), Gfx::go(), IMAPHandler::IMAPHandler(), Function::init(), OpieObex::SendWidget::initUI(), iso_connect(), iso_recv(), iso_recv_msg(), Opie::DB::Internal::OSQLiteDriver::lastError(), licence_parse_authreq(), Link::Link(), LinkDest::LinkDest(), LinkGoTo::LinkGoTo(), LinkGoToR::LinkGoToR(), LinkLaunch::LinkLaunch(), LinkURI::LinkURI(), CCITTFaxStream::lookChar(), ASCIIHexStream::lookChar(), GfxResources::lookupFont(), GfxResources::lookupGState(), GfxResources::lookupPattern(), GfxResources::lookupShading(), GfxResources::lookupXObject(), GfxResources::lookupXObjectNF(), Stream::makeFilter(), GfxFont::makeFont(), Parser::makeStream(), EmbedStream::makeSubStream(), mcs_connect(), mcs_recv(), mcs_recv_aucf(), mcs_recv_cjcf(), mcs_recv_connect_response(), EmbedStream::moveStart(), Gfx::opClosePath(), Gfx::opCurveTo(), Gfx::opCurveTo1(), Gfx::opCurveTo2(), Opie::DB::Internal::OSQLiteDriver::open(), Gfx::opEndImage(), Opietooth2::Opietooth2Applet::Opietooth2Applet(), Gfx::opImageData(), Gfx::opLineTo(), Gfx::opMoveSetShowText(), Gfx::opMoveShowText(), Gfx::opSetExtGState(), Gfx::opSetFillColorSpace(), Gfx::opSetStrokeColorSpace(), Gfx::opShowSpaceText(), Gfx::opShowText(), Gfx::opXObject(), Page::Page(), QMakeProject::parse(), UnicodeMap::parse(), GfxRadialShading::parse(), GfxAxialShading::parse(), GfxShading::parse(), GfxPatternColorSpace::parse(), GfxDeviceNColorSpace::parse(), GfxSeparationColorSpace::parse(), GfxIndexedColorSpace::parse(), GfxICCBasedColorSpace::parse(), GfxLabColorSpace::parse(), GfxCalRGBColorSpace::parse(), GfxCalGrayColorSpace::parse(), GfxColorSpace::parse(), Function::parse(), CMap::parse(), GlobalParams::parseCIDToUnicode(), CharCodeToUnicode::parseCIDToUnicode(), CharCodeToUnicode::parseCMap1(), GlobalParams::parseCMapDir(), PostScriptFunction::parseCode(), GlobalParams::parseDisplayFont(), GlobalParams::parseFile(), GlobalParams::parseFontDir(), GlobalParams::parseFontRastControl(), GlobalParams::parseInitialZoom(), GlobalParams::parseNameToUnicode(), WLANImp::parseOpts(), GlobalParams::parsePSFile(), GlobalParams::parsePSFont(), GlobalParams::parsePSFont16(), GlobalParams::parsePSLevel(), GlobalParams::parsePSPaperSize(), GlobalParams::parseTextEncoding(), GlobalParams::parseTextEOL(), GlobalParams::parseToUnicodeDir(), GlobalParams::parseUnicodeMap(), GlobalParams::parseURLCommand(), GlobalParams::parseYesNo(), PDFDoc::PDFDoc(), PopClient::PopClient(), PostScriptFunction::PostScriptFunction(), process_line(), process_orders(), process_polyline(), DCTStream::readAdobeMarker(), DCTStream::readBit(), KLocale::readDate(), FlateStream::readDynamicCodes(), GfxFont::readEmbFontFile(), GfxFont::readExtFontFile(), GfxFont::readFontDescriptor(), DCTStream::readFrameInfo(), DCTStream::readHeader(), DCTStream::readHuffmanTables(), DCTStream::readHuffSym(), DCTStream::readMCURow(), Catalog::readMetadata(), Catalog::readPageTree(), DCTStream::readQuantTables(), DCTStream::readRestartInterval(), DCTStream::readScanInfo(), FlateStream::readSome(), KLocale::readTime(), DCTStream::readTrailer(), FlateStream::reset(), LZWStream::reset(), QLibraryPrivate::resolveSymbol(), SampledFunction::SampledFunction(), PDFDoc::saveAs(), InterfaceSetupImp::saveChanges(), InterfaceSetupImp::saveSettings(), sec_parse_crypt_info(), sec_parse_public_key(), ServerPI::ServerPI(), EmbedStream::setPos(), FilterStream::setPos(), InterfaceSetupImp::setProfile(), PDFDoc::setup(), DateBook::slotNewEntry(), Composer::slotSendMail(), Composer::slotSendQueued(), TransferDialog::slotTransfer(), SmtpClient::SmtpClient(), Converter::sqliteMoveAndConvert(), QProcess::start(), Converter::start_upgrade(), FlateStream::startBlock(), StitchingFunction::StitchingFunction(), tcp_connect(), tcp_recv(), tcp_send(), TextOutputDev::TextOutputDev(), ui_draw_text(), WLANImp::writeOpts(), xmalloc(), and xrealloc().

void generate_random uint8 random  ) 
 

Definition at line 122 of file rdesktop.cpp.

References md5(), MD5_Final(), MD5_Init(), MD5_Update(), and NULL.

Referenced by sec_process_crypt_info().

int get_current_workarea uint32 x,
uint32 y,
uint32 width,
uint32 height
 

BOOL get_key_state unsigned int  state,
uint32  keysym
 

char* get_ksname uint32  keysym  ) 
 

BOOL handle_special_keys uint32  keysym,
unsigned int  state,
uint32  ev_time,
BOOL  pressed
 

void hexdump unsigned char *  p,
unsigned int  len
 

BOOL iso_connect char *  server  ) 
 

Definition at line 140 of file iso.cpp.

References code, error(), False, ISO_PDU_CC, ISO_PDU_CR, iso_recv_msg(), iso_send_msg(), NULL, tcp_connect(), tcp_disconnect(), and True.

Referenced by mcs_connect().

void iso_disconnect void   ) 
 

Definition at line 166 of file iso.cpp.

References ISO_PDU_DR, iso_send_msg(), and tcp_disconnect().

Referenced by mcs_connect(), and mcs_disconnect().

STREAM iso_init int  length  ) 
 

Definition at line 88 of file iso.cpp.

References s, s_push_layer, and tcp_init().

Referenced by mcs_init(), mcs_send_aurq(), mcs_send_cjrq(), mcs_send_connect_initial(), and mcs_send_edrq().

STREAM iso_recv void   ) 
 

Definition at line 120 of file iso.cpp.

References code, error(), ISO_PDU_DT, iso_recv_msg(), NULL, and s.

Referenced by mcs_recv(), mcs_recv_aucf(), mcs_recv_cjcf(), and mcs_recv_connect_response().

void iso_send STREAM  s  ) 
 

Definition at line 100 of file iso.cpp.

References stream::end, ISO_PDU_DT, out_uint16_be, out_uint8, stream::p, s_pop_layer, and tcp_send().

Referenced by mcs_send(), mcs_send_aurq(), mcs_send_cjrq(), mcs_send_connect_initial(), and mcs_send_edrq().

void licence_process STREAM  s  ) 
 

Definition at line 284 of file licence.cpp.

References in_uint16_le, in_uint8s, licence_process_authreq(), licence_process_demand(), licence_process_issue(), LICENCE_TAG_AUTHREQ, LICENCE_TAG_DEMAND, LICENCE_TAG_ISSUE, LICENCE_TAG_REISSUE, LICENCE_TAG_RESULT, and unimpl().

Referenced by sec_recv().

int load_licence unsigned char **  data  ) 
 

Definition at line 159 of file rdesktop.cpp.

References hostname, NULL, and xmalloc().

Referenced by licence_process_demand().

int main int  argc,
char *  argv[]
 

Definition at line 47 of file main.cpp.

References app, QPEApplication::exec(), QPEApplication::grabKeyboard(), NULL, odebug, oendl, server, shell, QPEApplication::showMainWidget(), tr, and TRUE.

BOOL mcs_connect char *  server,
STREAM  mcs_data
 

Definition at line 357 of file mcs.cpp.

References error(), False, iso_connect(), iso_disconnect(), MCS_GLOBAL_CHANNEL, mcs_recv_aucf(), mcs_recv_cjcf(), mcs_recv_connect_response(), mcs_send_aurq(), mcs_send_cjrq(), mcs_send_connect_initial(), mcs_send_edrq(), mcs_userid, and True.

Referenced by sec_connect().

void mcs_disconnect void   ) 
 

Definition at line 391 of file mcs.cpp.

References iso_disconnect().

Referenced by sec_disconnect().

STREAM mcs_init int  length  ) 
 

Definition at line 296 of file mcs.cpp.

References iso_init(), s, and s_push_layer.

Referenced by sec_init().

STREAM mcs_recv void   ) 
 

Definition at line 327 of file mcs.cpp.

References error(), in_uint8, in_uint8s, iso_recv(), MCS_DPUM, MCS_SDIN, NULL, and s.

Referenced by sec_recv().

void mcs_send STREAM  s  ) 
 

Definition at line 308 of file mcs.cpp.

References stream::end, iso_send(), MCS_GLOBAL_CHANNEL, MCS_SDRQ, mcs_userid, out_uint16_be, out_uint8, stream::p, and s_pop_layer.

Referenced by sec_send().

void process_orders STREAM  s  ) 
 

Definition at line 809 of file orders.cpp.

References _BOUNDS::bottom, _RDP_ORDER_STATE::bounds, _RDP_ORDER_STATE::desksave, _RDP_ORDER_STATE::destblt, error(), in_uint16_le, in_uint8, in_uint8s, _BOUNDS::left, _RDP_ORDER_STATE::line, _RDP_ORDER_STATE::memblt, next_packet, _RDP_ORDER_STATE::order_type, stream::p, _RDP_ORDER_STATE::patblt, _RDP_ORDER_STATE::polyline, process_desksave(), process_destblt(), process_line(), process_memblt(), process_patblt(), process_polyline(), process_rect(), process_screenblt(), process_secondary_order(), process_text2(), process_triblt(), rdp_in_present(), RDP_ORDER_BOUNDS, RDP_ORDER_CHANGE, RDP_ORDER_DELTA, RDP_ORDER_DESKSAVE, RDP_ORDER_DESTBLT, RDP_ORDER_LASTBOUNDS, RDP_ORDER_LINE, RDP_ORDER_MEMBLT, RDP_ORDER_PATBLT, RDP_ORDER_POLYLINE, RDP_ORDER_RECT, RDP_ORDER_SCREENBLT, RDP_ORDER_SECONDARY, RDP_ORDER_STANDARD, RDP_ORDER_TEXT2, RDP_ORDER_TRIBLT, rdp_parse_bounds(), _RDP_ORDER_STATE::rect, _BOUNDS::right, _RDP_ORDER_STATE::screenblt, size, _RDP_ORDER_STATE::text2, _BOUNDS::top, _RDP_ORDER_STATE::triblt, ui_reset_clip(), ui_set_clip(), and unimpl().

Referenced by process_update_pdu().

BOOL rdp_connect char *  server,
uint32  flags,
char *  domain,
char *  password,
char *  command,
char *  directory
 

Definition at line 733 of file rdp.cpp.

References False, rdp_send_logon_info(), sec_connect(), True, and username.

Referenced by QMyScrollView::timerEvent().

void rdp_disconnect void   ) 
 

Definition at line 745 of file rdp.cpp.

References sec_disconnect().

BOOL rdp_main_loop void   ) 
 

Definition at line 701 of file rdp.cpp.

References stream::end, False, next_packet, NULL, process_data_pdu(), process_demand_active(), RDP_PDU_DATA, RDP_PDU_DEACTIVATE, RDP_PDU_DEMAND_ACTIVE, rdp_recv(), s, True, type, and unimpl().

Referenced by QMyMainWindow::dataReceived().

void rdp_out_unistr STREAM  s,
char *  string,
int  len
 

Definition at line 140 of file rdp.cpp.

References i, and stream::p.

Referenced by rdp_send_logon_info(), and sec_out_mcs_data().

void rdp_send_input uint32  time,
uint16  message_type,
uint16  device_flags,
uint16  param1,
uint16  param2
 

Definition at line 221 of file rdp.cpp.

References out_uint16, out_uint16_le, out_uint32_le, RDP_DATA_PDU_INPUT, rdp_init_data(), rdp_send_data(), s, and s_mark_end.

Referenced by QMyScrollView::keyPressEvent(), QMyScrollView::keyReleaseEvent(), QMyMainWindow::MemuClicked(), QMyMainWindow::mouseMoveEvent(), QMyMainWindow::mousePressEvent(), QMyMainWindow::mouseReleaseEvent(), process_demand_active(), QMyMainWindow::timerEvent(), and QMyMainWindow::wheelEvent().

void rdp_send_scancode uint32  time,
uint16  flags,
uint8  scancode
 

void reset_modifier_keys unsigned int  state  ) 
 

void reset_order_state void   ) 
 

Definition at line 936 of file orders.cpp.

References RDP_ORDER_PATBLT.

Referenced by process_demand_active().

void save_licence unsigned char *  data,
int  length
 

Definition at line 185 of file rdesktop.cpp.

References hostname, i, in_uint16, in_uint32, len, NULL, stream::p, Opie::Core::perror(), printf, STRNCPY, write(), xmalloc(), and Opie::MM::y.

Referenced by licence_process_issue().

BOOL sec_connect char *  server  ) 
 

Definition at line 634 of file secure.cpp.

References stream::data, encryption, False, mcs_connect(), stream::p, sec_establish_key(), sec_out_mcs_data(), sec_process_mcs_data(), stream::size, True, xfree(), and xmalloc().

Referenced by rdp_connect().

void sec_disconnect void   ) 
 

Definition at line 655 of file secure.cpp.

References mcs_disconnect().

Referenced by rdp_disconnect().

void sec_hash_16 uint8 out,
uint8 in,
uint8 salt1,
uint8 salt2
 

Definition at line 91 of file secure.cpp.

References md5(), MD5_Final(), MD5_Init(), and MD5_Update().

Referenced by licence_generate_keys(), and sec_generate_keys().

void sec_hash_48 uint8 out,
uint8 in,
uint8 salt1,
uint8 salt2,
uint8  salt
 

Definition at line 60 of file secure.cpp.

References i, md5(), MD5_Final(), MD5_Init(), and MD5_Update().

Referenced by licence_generate_keys(), and sec_generate_keys().

STREAM sec_init uint32  flags,
int  maxlen
 

Definition at line 323 of file secure.cpp.

References licence_issued, mcs_init(), s, s_push_layer, SEC_ENCRYPT, and stream::sec_hdr.

Referenced by licence_present(), licence_send_authresp(), licence_send_request(), rdp_init(), rdp_init_data(), rdp_send_logon_info(), and sec_establish_key().

STREAM sec_recv void   ) 
 

Definition at line 602 of file secure.cpp.

References encryption, in_uint32_le, in_uint8s, licence_issued, licence_process(), mcs_recv(), NULL, s, sec_decrypt(), SEC_ENCRYPT, and SEC_LICENCE_NEG.

Referenced by rdp_recv().

void sec_send STREAM  s,
uint32  flags
 

Definition at line 340 of file secure.cpp.

References datalen, DEBUG, hexdump(), licence_issued, mcs_send(), out_uint32_le, rc4_key_len, s_pop_layer, SEC_ENCRYPT, sec_encrypt(), stream::sec_hdr, sec_sign(), and sec_sign_key.

Referenced by licence_present(), licence_send_authresp(), licence_send_request(), rdp_send(), rdp_send_data(), rdp_send_logon_info(), and sec_establish_key().

void sec_sign uint8 signature,
int  siglen,
uint8 session_key,
int  keylen,
uint8 data,
int  datalen
 

Definition at line 183 of file secure.cpp.

References buf_out_uint32(), md5(), MD5_Final(), MD5_Init(), MD5_Update(), pad_54, and pad_92.

Referenced by licence_process_authreq(), licence_process_demand(), and sec_send().

BOOL tcp_connect char *  server  ) 
 

Definition at line 124 of file tcp.cpp.

References stream::data, error(), False, INADDR_NONE, NULL, stream::size, sock, tcp_port_rdp, True, and xmalloc().

Referenced by iso_connect().

void tcp_disconnect void   ) 
 

Definition at line 178 of file tcp.cpp.

References sock.

Referenced by iso_connect(), and iso_disconnect().

STREAM tcp_init unsigned int  maxlen  ) 
 

Definition at line 43 of file tcp.cpp.

References stream::data, stream::end, stream::p, stream::size, and xrealloc().

Referenced by iso_init(), and iso_send_msg().

STREAM tcp_recv unsigned int  length  ) 
 

Definition at line 82 of file tcp.cpp.

References stream::data, stream::end, error(), NULL, stream::p, stream::size, sock, ui_select(), and xrealloc().

Referenced by iso_recv_msg().

void tcp_send STREAM  s  ) 
 

Definition at line 58 of file tcp.cpp.

References stream::data, stream::end, error(), and sock.

Referenced by iso_send(), and iso_send_msg().

void ui_begin_update void   ) 
 

Definition at line 1233 of file qtwin.cpp.

Referenced by process_update_pdu().

void ui_bell void   ) 
 

Definition at line 1261 of file qtwin.cpp.

Referenced by process_data_pdu().

HBITMAP ui_create_bitmap int  width,
int  height,
uint8 data
 

Definition at line 1079 of file qtwin.cpp.

References bitmap::data, bitmap::h, i, bitmap::w, and xmalloc().

Referenced by process_bmpcache(), and process_raw_bmpcache().

HCOLOURMAP ui_create_colourmap COLOURMAP colours  ) 
 

Definition at line 1203 of file qtwin.cpp.

References _COLOURENTRY::blue, _COLOURMAP::colours, g, _COLOURENTRY::green, i, _COLOURMAP::ncolours, QColorMap::NumColors, _COLOURENTRY::red, QColorMap::RGBColors, and Opie::MM::x.

Referenced by process_colcache(), and process_palette().

HCURSOR ui_create_cursor unsigned int  x,
unsigned int  y,
int  width,
int  height,
uint8 andmask,
uint8 xormask
 

Definition at line 1185 of file qtwin.cpp.

Referenced by process_pointer_pdu().

HGLYPH ui_create_glyph int  width,
int  height,
uint8 data
 

Definition at line 1151 of file qtwin.cpp.

References bitmap::data, bitmap::h, i, is_pixel_on(), set_pixel_on(), bitmap::w, and xmalloc().

Referenced by process_fontcache().

BOOL ui_create_window void   ) 
 

void ui_deinit void   ) 
 

void ui_desktop_restore uint32  offset,
int  x,
int  y,
int  cx,
int  cy
 

Definition at line 1576 of file qtwin.cpp.

References cache_get_desktop(), data, i, redraw(), and set_pixel().

Referenced by process_desksave().

void ui_desktop_save uint32  offset,
int  x,
int  y,
int  cx,
int  cy
 

Definition at line 1562 of file qtwin.cpp.

References cache_put_desktop(), data, get_pixel(), i, xfree(), and xmalloc().

Referenced by process_desksave().

void ui_destblt uint8  opcode,
int  x,
int  y,
int  cx,
int  cy
 

Definition at line 1267 of file qtwin.cpp.

References get_pixel(), i, redraw(), and set_pixel().

Referenced by process_destblt().

void ui_destroy_bitmap HBITMAP  bmp  ) 
 

Definition at line 1112 of file qtwin.cpp.

References bitmap::data, NULL, and xfree().

Referenced by cache_put_bitmap().

void ui_destroy_colourmap HCOLOURMAP  map  ) 
 

Definition at line 1223 of file qtwin.cpp.

void ui_destroy_cursor HCURSOR  cursor  ) 
 

Definition at line 1198 of file qtwin.cpp.

Referenced by cache_put_cursor().

void ui_destroy_glyph HGLYPH  glyph  ) 
 

Definition at line 1171 of file qtwin.cpp.

References bitmap::data, NULL, and xfree().

Referenced by cache_put_font().

void ui_destroy_window void   ) 
 

void ui_draw_text uint8  font,
uint8  flags,
int  mixmode,
int  x,
int  y,
int  clipx,
int  clipy,
int  clipcx,
int  clipcy,
int  boxx,
int  boxy,
int  boxcx,
int  boxcy,
int  bgcolour,
int  fgcolour,
uint8 text,
uint8  length
 

Definition at line 1491 of file qtwin.cpp.

References cache_get_text(), cache_put_text(), _DATABLOB::data, DO_GLYPH, error(), fill_rect(), i, MIX_OPAQUE, NULL, redraw(), size, TEXT2_IMPLICIT_X, and TEXT2_VERTICAL.

Referenced by process_text2().

void ui_end_update void   ) 
 

Definition at line 1238 of file qtwin.cpp.

Referenced by process_update_pdu().

BOOL ui_init void   ) 
 

void ui_line uint8  opcode,
int  startx,
int  starty,
int  endx,
int  endy,
PEN pen
 

Definition at line 1367 of file qtwin.cpp.

References _PEN::colour, p, redraw(), and set_pixel().

Referenced by process_line(), and process_polyline().

void ui_memblt uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy
 

Definition at line 1341 of file qtwin.cpp.

References bitmap::data, bitmap::h, i, NULL, redraw(), set_pixel(), and bitmap::w.

Referenced by process_memblt().

void ui_move_pointer int  x,
int  y
 

Definition at line 1074 of file qtwin.cpp.

Referenced by process_pointer_pdu().

void ui_paint_bitmap int  x,
int  y,
int  cx,
int  cy,
int  width,
int  height,
uint8 data
 

Definition at line 1098 of file qtwin.cpp.

References i, redraw(), and set_pixel().

Referenced by process_bitmap_updates().

void ui_patblt uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
BRUSH brush,
int  bgcolour,
int  fgcolour
 

Definition at line 1296 of file qtwin.cpp.

References fill_rect(), i, is_pixel_on(), _BRUSH::pattern, redraw(), set_pixel(), _BRUSH::style, _BRUSH::xorigin, and _BRUSH::yorigin.

Referenced by process_patblt().

void ui_rect int  x,
int  y,
int  cx,
int  cy,
int  colour
 

Definition at line 1289 of file qtwin.cpp.

References fill_rect(), and redraw().

Referenced by process_rect().

void ui_reset_clip void   ) 
 

Definition at line 1252 of file qtwin.cpp.

References clipcx, clipcy, clipx, clipy, g_height, and g_width.

Referenced by process_orders().

void ui_screenblt uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
int  srcx,
int  srcy
 

Definition at line 1323 of file qtwin.cpp.

References get_pixel(), i, redraw(), set_pixel(), xfree(), and xmalloc().

Referenced by process_screenblt().

int ui_select int  rdp_socket  ) 
 

Definition at line 1067 of file qtwin.cpp.

References global_sock.

Referenced by tcp_recv().

void ui_set_clip int  x,
int  y,
int  cx,
int  cy
 

Definition at line 1243 of file qtwin.cpp.

References clipcx, clipcy, clipx, and clipy.

Referenced by process_orders().

void ui_set_colourmap HCOLOURMAP  map  ) 
 

Definition at line 1228 of file qtwin.cpp.

Referenced by process_colcache(), and process_palette().

void ui_set_cursor HCURSOR  cursor  ) 
 

Definition at line 1193 of file qtwin.cpp.

Referenced by process_pointer_pdu().

void ui_triblt uint8  opcode,
int  x,
int  y,
int  cx,
int  cy,
HBITMAP  src,
int  srcx,
int  srcy,
BRUSH brush,
int  bgcolour,
int  fgcolour
 

Definition at line 1359 of file qtwin.cpp.

Referenced by process_triblt().

void unimpl char *  format,
  ...
 

Definition at line 71 of file rdesktop.cpp.

Referenced by bitmap_decompress(), licence_process(), process_data_pdu(), process_orders(), process_secondary_order(), process_update_pdu(), rdp_main_loop(), sec_parse_crypt_info(), and sec_process_mcs_data().

void warning char *  format,
  ...
 

Definition at line 116 of file rdesktop.cpp.

Referenced by WriteMail::accept(), AccountEditor::accept(), EditNetworkSetup::accept(), LanguageSettings::accept(), ComposeMail::accept(), filePermissions::accept(), PlaylistView::addFile(), DemoApp::addTrigger(), App::App(), Bartender::askSearch(), KPPPWidget::beginConnect(), TransactionDisplay::checkListViewDelete(), TransactionDisplay::checkListViewEdit(), TransactionDisplay::checkListViewToggle(), ServerApplication::checkMemory(), QTReader::checkoutput(), Board::checkTurn(), ContactEditor::chooserError(), FileView::chPerm(), TVKeyEdit::clearTerms(), QTReaderApp::closeEvent(), WellenreiterMainWindow::closeEvent(), Clock::closeEvent(), ZSameWidget::confirmAbort(), QPEMessageBox::confirmDelete(), OpieFtp::connector(), AdvancedFm::copy(), AdvancedFm::copyAs(), AdvancedFm::copySameDir(), BallPainter::createPixmap(), FileView::cut(), Sheet::dataFindReplace(), Opie::Core::Internal::DebugBackend::debugMsgB(), FileView::del(), AccountDisplay::deleteAccount(), EmailClient::deleteAccount(), mainWindowWidget::deleteFile(), MHfolderItem::deleteFolder(), IMAPfolderItem::deleteFolder(), BackGammon::deletegame(), MemoryDialog::deleteItem(), BudgetDisplay::deleteLineItem(), BackGammon::deletetheme(), UserConfig::delGroup(), DemoApp::delTrigger(), UserConfig::delUser(), AdvancedFm::doDelete(), FormatterApp::doFormat(), FormatterApp::doFsck(), Qsmb::DoItClicked(), QTReaderApp::dosearch(), EmailClient::download(), DateBook::duplicateEvent(), LnkProperties::duplicateLnk(), AccountDisplay::editAccount(), TextEdit::editDelete(), DateBook::editEvent(), MemoryDialog::editItem(), BudgetDisplay::editLineItem(), FileView::endRenaming(), EmailClient::enqueMail(), KVNC::error(), SortDialog::exec(), DisplayMessageTask::execute(), AppLauncher::execute(), POP3wrapper::fetchBody(), QTReaderApp::fileOpen2(), optionsDialog::ftpSiteDlg(), Opietooth2::OTScan::getDevice(), EmailClient::getNewMail(), BatteryStatus::getProcApmStatusIpaq(), DateBookDB::init(), Global::invoke(), FileView::itemDblClicked(), editWindowWidget::loadFile(), OpieFtp::localDelete(), LoginWindowImpl::login(), main(), ZoneMap::makeMap(), WordGame::mayEndGame(), QTReader::mouseReleaseEvent(), AdvancedFm::move(), LnkProperties::moveLnk(), FileView::newFolder(), LibraryDialog::newList(), TinyKate::open(), ZSafe::openDocument(), QPdfDlg::openFile(), TextEdit::openFile(), QTReaderApp::openfrombkmk(), MHwrapper::oprocessStderr(), AdvancedFm::oprocessStderr(), FileView::paste(), ScreenshotControl::performGrab(), XineControl::play(), EmailClient::popError(), CPlucker_base::putSaveData(), QTReaderApp::QTReaderApp(), KMessageBox::questionYesNo(), KPPPWidget::quitbutton(), BkmkFile::readall(), ZoneMap::readZones(), QtRec::rec(), mainWindowWidget::refreshList(), ComposeMail::reject(), OpieFtp::remoteDelete(), DevicesWidget::remove(), AccountWidget::remove(), DateBook::removeEvent(), TabManager::removeItem(), CameraMainWindow::resoMenuItemClicked(), BackupAndRestore::restore(), runTests(), editWindowWidget::saveFile(), EmailHandler::sendMail(), EmailClient::sendQuedMail(), FileView::setDir(), EditNetworkSetup::setNetworkSetup(), QTReaderApp::showprefs(), ServerApplication::showSafeMode(), QTReaderApp::showtoolbarprefs(), TransactionDisplay::showTransactionNotes(), NetworkSettings::SLOT_DeleteNode(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_EditNode(), NetworkSettings::SLOT_GenerateConfig(), Opietooth2::OTSniffing::SLOT_Load(), Opietooth2::OTSniffing::SLOT_Save(), Opietooth2::OTGateway::SLOT_ShowError(), Opietooth2::OTSniffing::SLOT_Trace(), Opietooth2::OTPairing::SLOT_Unpair(), NetworkSettings::SLOT_Up(), NotesControl::slotDeleteButtonClicked(), ViewMail::slotDeleteMail(), OpieMail::slotDeleteMail(), CategorySelect::slotDialog(), TimeZoneSelector::slotExecute(), FolderWidget::slotIMAPCreate(), FolderWidget::slotIMAPDelete(), FolderWidget::slotIMAPError(), SearchDiag::slotIMAPFetch(), FolderWidget::slotIMAPList(), FolderWidget::slotIMAPLogin(), FolderWidget::slotIMAPRename(), SearchDiag::slotIMAPSearch(), SearchDiag::slotIMAPSelect(), MailTable::slotIMAPSelect(), ViewMail::slotIMAPUid(), AddressbookWindow::slotItemDelete(), mainWindowWidget::slotItemDuplicate(), AddressbookWindow::slotItemDuplicate(), AddressbookWindow::slotItemEdit(), AddressbookWindow::slotItemNew(), DateBook::slotNewEntry(), DateBook::slotNewEventFromKey(), ProcessInfo::slotSendClicked(), ModulesInfo::slotSendClicked(), Composer::slotSendError(), Composer::slotSendQueuedError(), MainWindow::slotSheetRemove(), EmailClient::smtpError(), KMessageBox::sorry(), InterfacePPP::start(), Converter::start_conversion(), Converter::start_upgrade(), Wellenreiter::startClicked(), CfgHandler::startKeymapElement(), CameraMainWindow::systemMessage(), ModemTransfer::time_out_slot(), Dialer::trydial(), LnkProperties::unlinkLnk(), Text::unsuspend(), CHM::unsuspend(), WellenreiterMainWindow::uploadSession(), KMessageBox::warningContinueCancel(), KMessageBox::warningYesNoCancel(), WLANImp::writeOpts(), QTReaderApp::writeUrl(), and NetworkSettings::~NetworkSettings().

void xfree void *  mem  ) 
 

Definition at line 103 of file rdesktop.cpp.

Referenced by cache_put_text(), licence_process_demand(), main(), QMyMainWindow::paintEvent(), process_bitmap_updates(), process_bmpcache(), process_colcache(), process_raw_bmpcache(), sec_connect(), ui_desktop_save(), ui_destroy_bitmap(), ui_destroy_glyph(), and ui_screenblt().

void xkeymap_init void   ) 
 

uint16 xkeymap_translate_button unsigned int  button  ) 
 

key_translation xkeymap_translate_key uint32  keysym,
unsigned int  keycode,
unsigned int  state
 

void* xmalloc int  size  ) 
 

Definition at line 77 of file rdesktop.cpp.

References error(), and NULL.

Referenced by cache_put_text(), load_licence(), QMyMainWindow::paintEvent(), process_bitmap_updates(), process_bmpcache(), process_colcache(), process_raw_bmpcache(), save_licence(), sec_connect(), tcp_connect(), QMyScrollView::timerEvent(), ui_create_bitmap(), ui_create_glyph(), ui_desktop_save(), and ui_screenblt().

void* xrealloc void *  oldmem,
int  size
 

Definition at line 90 of file rdesktop.cpp.

References error(), and NULL.

Referenced by tcp_init(), and tcp_recv().

void xwin_toggle_fullscreen void   ) 
 


Generated on Sat Nov 5 17:04:09 2005 for OPIE by  doxygen 1.4.2