~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/include/extensions/lbxbuf.h

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Xorg: lbxbuf.h,v 1.3 2000/08/18 04:05:45 coskrey Exp $ */
 
2
/*
 
3
 * Copyright 1988, 1989, 1990, 1994 Network Computing Devices, Inc.
 
4
 *
 
5
 * Permission to use, copy, modify, distribute, and sell this software and
 
6
 * its documentation for any purpose is hereby granted without fee, provided
 
7
 * that the above copyright notice appear in all copies and that both that
 
8
 * copyright notice and this permission notice appear in supporting
 
9
 * documentation, and that the name Network Computing Devices, Inc. not be
 
10
 * used in advertising or publicity pertaining to distribution of this 
 
11
 * software without specific, written prior permission.
 
12
 * 
 
13
 * THIS SOFTWARE IS PROVIDED `AS-IS'.  NETWORK COMPUTING DEVICES, INC.,
 
14
 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
 
15
 * LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 
16
 * PARTICULAR PURPOSE, OR NONINFRINGEMENT.  IN NO EVENT SHALL NETWORK
 
17
 * COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
 
18
 * SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE,
 
19
 * DATA, OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND
 
20
 * REGARDLESS OF WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE,
 
21
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
22
 * SOFTWARE.
 
23
 * 
 
24
 */
 
25
 
 
26
#ifndef _BUFFER_H_
 
27
#define _BUFFER_H_
 
28
 
 
29
#define INBUFFER_SIZE           (1 << 13)       /* 8K */
 
30
#define OUTBUFFER_SIZE          (1 << 12)       /* 4K */
 
31
 
 
32
#ifndef TRUE
 
33
#define TRUE    1
 
34
#endif
 
35
#ifndef FALSE
 
36
#define FALSE   0
 
37
#endif
 
38
 
 
39
typedef struct _zlibbuffer  *ZlibBufferPtr;
 
40
 
 
41
#include <X11/Xfuncproto.h>
 
42
 
 
43
_XFUNCPROTOBEGIN
 
44
 
 
45
extern int  InitZlibBuffer(ZlibBufferPtr b, int size);
 
46
extern void FreeZlibBuffer(ZlibBufferPtr b);
 
47
extern char *ReserveOutBuf(ZlibBufferPtr outbuf, int outlen);
 
48
 
 
49
_XFUNCPROTOEND
 
50
 
 
51
#endif  /* _BUFFER_H_ */