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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/Xprint/pcl/Pclmap.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: Pclmap.h,v 1.3 2000/08/17 19:48:08 cpqbld Exp $ */
 
2
/*
 
3
(c) Copyright 1996 Hewlett-Packard Company
 
4
(c) Copyright 1996 International Business Machines Corp.
 
5
(c) Copyright 1996 Sun Microsystems, Inc.
 
6
(c) Copyright 1996 Novell, Inc.
 
7
(c) Copyright 1996 Digital Equipment Corp.
 
8
(c) Copyright 1996 Fujitsu Limited
 
9
(c) Copyright 1996 Hitachi, Ltd.
 
10
 
 
11
Permission is hereby granted, free of charge, to any person obtaining a copy
 
12
of this software and associated documentation files (the "Software"), to deal
 
13
in the Software without restriction, including without limitation the rights
 
14
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
15
copies of the Software, and to permit persons to whom the Software is
 
16
furnished to do so, subject to the following conditions:
 
17
 
 
18
The above copyright notice and this permission notice shall be included in
 
19
all copies or substantial portions of the Software.
 
20
 
 
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 
25
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
 
 
28
Except as contained in this notice, the names of the copyright holders shall
 
29
not be used in advertising or otherwise to promote the sale, use or other
 
30
dealings in this Software without prior written authorization from said
 
31
copyright holders.
 
32
*/
 
33
/* $XFree86: xc/programs/Xserver/Xprint/pcl/Pclmap.h,v 1.6 2001/12/21 21:02:05 dawes Exp $ */
 
34
 
 
35
#ifndef _PCLMAP_H_
 
36
#define _PCLMAP_H_
 
37
 
 
38
#ifdef XP_PCL_COLOR
 
39
#ifdef CATNAME
 
40
#undef CATNAME
 
41
#endif
 
42
#if !defined(UNIXCPP) || defined(ANSICPP)
 
43
#define PCLNAME(subname) PclCr##subname
 
44
#define CATNAME(prefix,subname) prefix##Color##subname
 
45
#else
 
46
#define PCLNAME(subname) PclCr/**/subname
 
47
#define CATNAME(prefix,subname) prefix/**/Color/**/subname
 
48
#endif
 
49
#endif /* XP_PCL_COLOR */
 
50
 
 
51
#ifdef XP_PCL_MONO
 
52
#ifdef CATNAME
 
53
#undef CATNAME
 
54
#endif
 
55
#if !defined(UNIXCPP) || defined(ANSICPP)
 
56
#define PCLNAME(subname) PclMn##subname
 
57
#define CATNAME(prefix,subname) prefix##Mono##subname
 
58
#else
 
59
#define PCLNAME(subname) PclMn/**/subname
 
60
#define CATNAME(prefix,subname) prefix/**/Mono/**/subname
 
61
#endif
 
62
#endif /* XP_PCL_MONO */
 
63
 
 
64
#ifdef XP_PCL_LJ3
 
65
#ifdef CATNAME
 
66
#undef CATNAME
 
67
#endif
 
68
#if !defined(UNIXCPP) || defined(ANSICPP)
 
69
#define PCLNAME(subname) PclLj3##subname
 
70
#define CATNAME(prefix,subname) prefix##Lj3##subname
 
71
#else
 
72
#define PCLNAME(subname) PclLj3/**/subname
 
73
#define CATNAME(prefix,subname) prefix/**/Lj3/**/subname
 
74
#endif
 
75
#endif /* XP_PCL_LJ3 */
 
76
 
 
77
#ifdef PCLNAME
 
78
 
 
79
/* PclInit.c */
 
80
#define InitializePclDriver             CATNAME(Initialize, PclDriver)
 
81
#define PclCloseScreen                  PCLNAME(CloseScreen)
 
82
#define PclGetContextFromWindow         PCLNAME(GetContextFromWindow)
 
83
#define PclScreenPrivateIndex   PCLNAME(ScreenPrivateIndex)
 
84
#define PclWindowPrivateIndex   PCLNAME(WindowPrivateIndex)
 
85
#define PclContextPrivateIndex  PCLNAME(ContextPrivateIndex)
 
86
#define PclPixmapPrivateIndex   PCLNAME(PixmapPrivateIndex)
 
87
#define PclGCPrivateIndex       PCLNAME(GCPrivateIndex)
 
88
 
 
89
/* PclPrint.c */
 
90
#define PclStartJob                     PCLNAME(StartJob)
 
91
#define PclEndJob                       PCLNAME(EndJob)
 
92
#define PclStartPage                    PCLNAME(StartPage)
 
93
#define PclEndPage                      PCLNAME(EndPage)
 
94
#define PclStartDoc                     PCLNAME(StartDoc)
 
95
#define PclEndDoc                       PCLNAME(EndDoc)
 
96
#define PclDocumentData                 PCLNAME(DocumentData)
 
97
#define PclGetDocumentData              PCLNAME(GetDocumentData)
 
98
 
 
99
/* PclWindow.c */
 
100
#define PclCreateWindow                 PCLNAME(CreateWindow)
 
101
#define PclMapWindow                    PCLNAME(MapWindow)
 
102
#define PclPositionWindow               PCLNAME(PositionWindow)
 
103
#define PclUnmapWindow                  PCLNAME(UnmapWindow)
 
104
#define PclCopyWindow                   PCLNAME(CopyWindow)
 
105
#define PclChangeWindowAttributes       PCLNAME(ChangeWindowAttributes)
 
106
#define PclPaintWindow                  PCLNAME(PaintWindow)
 
107
#define PclDestroyWindow                PCLNAME(DestroyWindow)
 
108
 
 
109
/* PclGC.c */
 
110
#define PclCreateGC                     PCLNAME(CreateGC)
 
111
#define PclDestroyGC                    PCLNAME(DestroyGC)
 
112
#define PclGetDrawablePrivateStuff      PCLNAME(GetDrawablePrivateStuff)
 
113
#define PclSetDrawablePrivateGC         PCLNAME(SetDrawablePrivateGC)
 
114
#define PclSendPattern                  PCLNAME(SendPattern)
 
115
#define PclUpdateDrawableGC             PCLNAME(UpdateDrawableGC)
 
116
#define PclComputeCompositeClip         PCLNAME(ComputeCompositeClip)
 
117
#define PclValidateGC                   PCLNAME(ValidateGC)
 
118
 
 
119
/* PclAttr.c */
 
120
#define PclGetAttributes                PCLNAME(GetAttributes)
 
121
#define PclGetOneAttribute              PCLNAME(GetOneAttribute)
 
122
#define PclAugmentAttributes            PCLNAME(AugmentAttributes)
 
123
#define PclSetAttributes                PCLNAME(SetAttributes)
 
124
 
 
125
/* PclColor.c */
 
126
#define PclLookUp                       PCLNAME(LookUp)
 
127
#define PclCreateDefColormap            PCLNAME(CreateDefColormap)
 
128
#define PclCreateColormap               PCLNAME(CreateColormap)
 
129
#define PclDestroyColormap              PCLNAME(DestroyColormap)
 
130
#define PclInstallColormap              PCLNAME(InstallColormap)
 
131
#define PclUninstallColormap            PCLNAME(UninstallColormap)
 
132
#define PclListInstalledColormaps       PCLNAME(ListInstalledColormaps)
 
133
#define PclStoreColors                  PCLNAME(StoreColors)
 
134
#define PclResolveColor                 PCLNAME(ResolveColor)
 
135
#define PclFindPaletteMap               PCLNAME(FindPaletteMap)
 
136
#define PclUpdateColormap               PCLNAME(UpdateColormap)
 
137
#define PclReadMap                      PCLNAME(ReadMap)
 
138
 
 
139
/* PclPixmap.c */
 
140
#define PclCreatePixmap                 PCLNAME(CreatePixmap)
 
141
#define PclDestroyPixmap                PCLNAME(DestroyPixmap)
 
142
 
 
143
/* PclArc.c */
 
144
#define PclDoArc                        PCLNAME(DoArc)
 
145
#define PclPolyArc                      PCLNAME(PolyArc)
 
146
#define PclPolyFillArc                  PCLNAME(PolyFillArc)
 
147
 
 
148
/* PclArea.c */
 
149
#define PclPutImage                     PCLNAME(PutImage)
 
150
#define PclCopyArea                     PCLNAME(CopyArea)
 
151
#define PclCopyPlane                    PCLNAME(CopyPlane)
 
152
 
 
153
/* PclLine */
 
154
#define PclPolyLine                     PCLNAME(PolyLine)
 
155
#define PclPolySegment                  PCLNAME(PolySegment)
 
156
 
 
157
/* PclPixel.c */
 
158
#define PclPolyPoint                    PCLNAME(PolyPoint)
 
159
#define PclPushPixels                   PCLNAME(PushPixels)
 
160
 
 
161
/* PclPolygon.c */
 
162
#define PclPolyRectangle                PCLNAME(PolyRectangle)
 
163
#define PclFillPolygon                  PCLNAME(FillPolygon)
 
164
#define PclPolyFillRect                 PCLNAME(PolyFillRect)
 
165
 
 
166
/* PclSpans.c */
 
167
#define PclFillSpans                    PCLNAME(FillSpans)
 
168
#define PclSetSpans                     PCLNAME(SetSpans)
 
169
 
 
170
/* PclText.c */
 
171
#define PclPolyText8                    PCLNAME(PolyText8)
 
172
#define PclPolyText16                   PCLNAME(PolyText16)
 
173
#define PclImageText8                   PCLNAME(ImageText8)
 
174
#define PclImageText16                  PCLNAME(ImageText16)
 
175
#define PclImageGlyphBlt                PCLNAME(ImageGlyphBlt)
 
176
#define PclPolyGlyphBlt                 PCLNAME(PolyGlyphBlt)
 
177
#define PclPolyGlyphBlt                 PCLNAME(PolyGlyphBlt)
 
178
 
 
179
/* PclFonts.c */
 
180
#define PclRealizeFont                  PCLNAME(RealizeFont)
 
181
#define PclUnrealizeFont                PCLNAME(UnrealizeFont)
 
182
 
 
183
/* PclSFonts.c */
 
184
#define PclDownloadSoftFont8            PCLNAME(DownloadSoftFont8)
 
185
#define PclDownloadSoftFont16           PCLNAME(DownloadSoftFont16)
 
186
#define PclCreateSoftFontInfo           PCLNAME(CreateSoftFontInfo)
 
187
#define PclDestroySoftFontInfo          PCLNAME(DestroySoftFontInfo)
 
188
 
 
189
/* PclMisc.c */
 
190
#define PclQueryBestSize                PCLNAME(QueryBestSize)
 
191
#define GetPropString                   PCLNAME(GetPropString)
 
192
#define SystemCmd                       PCLNAME(SystemCmd)
 
193
#define PclGetMediumDimensions          PCLNAME(GetMediumDimensions)
 
194
#define PclGetReproducibleArea          PCLNAME(GetReproducibleArea)
 
195
#define PclSpoolFigs                    PCLNAME(SpoolFigs)
 
196
#define PclSendData                     PCLNAME(SendData)
 
197
 
 
198
/* PclCursor.c */
 
199
#define PclConstrainCursor              PCLNAME(ConstrainCursor)
 
200
#define PclCursorLimits                 PCLNAME(CursorLimits)
 
201
#define PclDisplayCursor                PCLNAME(DisplayCursor)
 
202
#define PclRealizeCursor                PCLNAME(RealizeCursor)
 
203
#define PclUnrealizeCursor              PCLNAME(UnrealizeCursor)
 
204
#define PclRecolorCursor                PCLNAME(RecolorCursor)
 
205
#define PclSetCursorPosition            PCLNAME(SetCursorPosition)
 
206
 
 
207
#endif
 
208
 
 
209
#endif /* _PCLMAP_H_ */