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

« back to all changes in this revision

Viewing changes to unix/xc/include/fonts/FS.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: FS.h,v 1.4 2001/02/09 02:03:24 xorgcvs Exp $ */
 
2
 
 
3
/*
 
4
 * Copyright 1990, 1991 Network Computing Devices;
 
5
 * Portions Copyright 1987 by Digital Equipment Corporation 
 
6
 *
 
7
 * Permission to use, copy, modify, distribute, and sell this software and
 
8
 * its documentation for any purpose is hereby granted without fee, provided
 
9
 * that the above copyright notice appear in all copies and that both that
 
10
 * copyright notice and this permission notice appear in supporting
 
11
 * documentation, and that the names of Network Computing Devices or Digital
 
12
 * not be used in advertising or publicity pertaining to distribution
 
13
 * of the software without specific, written prior permission.
 
14
 * Network Computing Devices and Digital make no representations 
 
15
 * about the suitability of this software for any purpose.  It is provided 
 
16
 * "as is" without express or implied warranty.
 
17
 *
 
18
 * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH
 
19
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
 
20
 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
 
21
 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 
22
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 
23
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 
24
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
 
25
 * THIS SOFTWARE.
 
26
 */
 
27
 
 
28
/*
 
29
 
 
30
Portions Copyright 1987, 1994, 1998  The Open Group
 
31
 
 
32
Permission to use, copy, modify, distribute, and sell this software and its
 
33
documentation for any purpose is hereby granted without fee, provided that
 
34
the above copyright notice appear in all copies and that both that
 
35
copyright notice and this permission notice appear in supporting
 
36
documentation.
 
37
 
 
38
The above copyright notice and this permission notice shall be included in
 
39
all copies or substantial portions of the Software.
 
40
 
 
41
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
42
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
43
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
44
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
45
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
46
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
47
 
 
48
Except as contained in this notice, the name of The Open Group shall not be
 
49
used in advertising or otherwise to promote the sale, use or other dealings
 
50
in this Software without prior written authorization from The Open Group.
 
51
 
 
52
*/
 
53
/* $XFree86: xc/include/fonts/FS.h,v 1.8 2001/12/14 19:53:31 dawes Exp $ */
 
54
 
 
55
#ifndef _FS_H_
 
56
#define _FS_H_
 
57
 
 
58
#include <X11/Xdefs.h>
 
59
#include <X11/fonts/fsmasks.h>
 
60
 
 
61
#define FS_PROTOCOL             2
 
62
#define FS_PROTOCOL_MINOR       0
 
63
 
 
64
#ifndef X_PROTOCOL
 
65
/* protocol familes */
 
66
#define FamilyInternet          0
 
67
#define FamilyDECnet            1
 
68
#define FamilyChaos             2
 
69
 
 
70
 
 
71
typedef unsigned int    FSDrawDirection;
 
72
#endif
 
73
 
 
74
#ifndef None
 
75
#define None            0L
 
76
#endif
 
77
 
 
78
#define LeftToRightDrawDirection        0
 
79
#define RightToLeftDrawDirection        1
 
80
 
 
81
/* font info flags */
 
82
#define FontInfoAllCharsExist           (1L << 0)
 
83
#define FontInfoInkInside               (1L << 1)
 
84
#define FontInfoHorizontalOverlap       (1L << 2)
 
85
 
 
86
/* auth status flags */
 
87
#define AuthSuccess     0
 
88
#define AuthContinue    1
 
89
#define AuthBusy        2
 
90
#define AuthDenied      3
 
91
 
 
92
/* property types */
 
93
#define PropTypeString          0
 
94
#define PropTypeUnsigned        1
 
95
#define PropTypeSigned          2
 
96
 
 
97
#ifndef LSBFirst
 
98
/* byte order */
 
99
#define LSBFirst                0
 
100
#define MSBFirst                1
 
101
#endif
 
102
 
 
103
/* event masks */
 
104
#define CatalogueChangeNotifyMask       (1L << 0)
 
105
#define FontChangeNotifyMask            (1L << 1)
 
106
 
 
107
/* errors */
 
108
#define FSSuccess               -1
 
109
#define FSBadRequest            0
 
110
#define FSBadFormat             1
 
111
#define FSBadFont               2
 
112
#define FSBadRange              3
 
113
#define FSBadEventMask          4
 
114
#define FSBadAccessContext      5
 
115
#define FSBadIDChoice           6
 
116
#define FSBadName               7
 
117
#define FSBadResolution         8
 
118
#define FSBadAlloc              9
 
119
#define FSBadLength             10
 
120
#define FSBadImplementation     11
 
121
 
 
122
#define FirstExtensionError     128
 
123
#define LastExtensionError      255
 
124
 
 
125
/* events */
 
126
#define KeepAlive               0
 
127
#define CatalogueChangeNotify   1
 
128
#define FontChangeNotify        2
 
129
#define FSLASTEvent             3
 
130
 
 
131
#endif                          /* _FS_H_ */