rdp5.c revision d65680efa46fa49e8bf14e67b29b782510ff934c
af062818b47340eef15700d2f0211576ba3506eevboxsync/* -*- c-basic-offset: 8 -*-
af062818b47340eef15700d2f0211576ba3506eevboxsync rdesktop: A Remote Desktop Protocol client.
af062818b47340eef15700d2f0211576ba3506eevboxsync Protocol services - RDP5 short form PDU processing
af062818b47340eef15700d2f0211576ba3506eevboxsync Copyright (C) Matthew Chapman 1999-2007
af062818b47340eef15700d2f0211576ba3506eevboxsync Copyright (C) Erik Forsberg 2003-2007
af062818b47340eef15700d2f0211576ba3506eevboxsync This program is free software; you can redistribute it and/or modify
af062818b47340eef15700d2f0211576ba3506eevboxsync it under the terms of the GNU General Public License as published by
af062818b47340eef15700d2f0211576ba3506eevboxsync the Free Software Foundation; either version 2 of the License, or
af062818b47340eef15700d2f0211576ba3506eevboxsync (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync This program is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
af062818b47340eef15700d2f0211576ba3506eevboxsync GNU General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync You should have received a copy of the GNU General Public License
af062818b47340eef15700d2f0211576ba3506eevboxsync along with this program; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Sun GPL Disclaimer: For the avoidance of doubt, except that if any license choice
af062818b47340eef15700d2f0211576ba3506eevboxsync * other than GPL or LGPL is available it will apply instead, Sun elects to use only
af062818b47340eef15700d2f0211576ba3506eevboxsync * the General Public License version 2 (GPLv2) at this time for any software where
af062818b47340eef15700d2f0211576ba3506eevboxsync * a choice of GPL license versions is made available with the language indicating
af062818b47340eef15700d2f0211576ba3506eevboxsync * that GPLv2 or any later version may be used, or where a choice of which version
af062818b47340eef15700d2f0211576ba3506eevboxsync * of the GPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsync while (s->p < s->end)
af062818b47340eef15700d2f0211576ba3506eevboxsync if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1)
af062818b47340eef15700d2f0211576ba3506eevboxsync /* allocate memory and copy the uncompressed data into the temporary stream */
af062818b47340eef15700d2f0211576ba3506eevboxsync memcpy((ns->data), (unsigned char *) (g_mppc_dict.hist + roff), rlen);
af062818b47340eef15700d2f0211576ba3506eevboxsync case 0: /* update orders */