patent - LZS. MPPC decompress is OK according to Guus Dhaeze <GDHaeze at hifn dot com>

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@688 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Kallden 2004-05-04 09:48:45 +00:00
parent 7c346510aa
commit fce6f415b3

47
mppc.c
View File

@ -1,3 +1,23 @@
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Protocol services - RDP decompression
Copyright (C) Matthew Chapman 1999-2004
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -6,24 +26,31 @@
/* mppc decompression */ /* mppc decompression */
/* http://www.faqs.org/rfcs/rfc2118.html */ /* http://www.faqs.org/rfcs/rfc2118.html */
/* TODO: research the below statements */ /* Contacts: */
/* there exists one or more patents */ /* hifn contact mentioned in the faq is */
/* related to compression algorithms */ /* Robert Friend rfriend at hifn dot com */
/* since we are only decompressing I */ /* if you have questions regarding MPPC */
/* think the end-user is safe. */ /* our contact is */
/* Guus Dhaeze GDhaeze at hifn dot com */
/* even if that isn't true, aren't you */ /* Licensing: */
/* already paying royalties */
/* through the CAL licenses? */ /* decompression is alright as long as we */
/* don't compress data */
/* Algorithm: */
/* as the rfc states the algorithm seems to */ /* as the rfc states the algorithm seems to */
/* be LZ77 with a sliding buffer */ /* be LZ77 with a sliding buffer */
/* that is empty at init. */ /* that is empty at init. */
/* as of my limited knowledge these patents */ /* the algorithm is called LZS and is */
/* has expired. */ /* patented for another couple of years. */
/* more information is available in */
/* http://www.ietf.org/ietf/IPR/hifn-ipr-draft-friend-tls-lzs-compression.txt */
RDPCOMP g_mppc_dict; RDPCOMP g_mppc_dict;