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

« back to all changes in this revision

Viewing changes to unix/xc/lib/Xaw/AsciiTextP.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
/*
 
2
 * $Xorg: AsciiTextP.h,v 1.4 2001/02/09 02:03:42 xorgcvs Exp $
 
3
 */
 
4
 
 
5
/***********************************************************
 
6
 
 
7
Copyright 1987, 1988, 1994, 1998  The Open Group
 
8
 
 
9
Permission to use, copy, modify, distribute, and sell this software and its
 
10
documentation for any purpose is hereby granted without fee, provided that
 
11
the above copyright notice appear in all copies and that both that
 
12
copyright notice and this permission notice appear in supporting
 
13
documentation.
 
14
 
 
15
The above copyright notice and this permission notice shall be included in
 
16
all copies or substantial portions of the Software.
 
17
 
 
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
19
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
20
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
21
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
22
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
23
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
24
 
 
25
Except as contained in this notice, the name of The Open Group shall not be
 
26
used in advertising or otherwise to promote the sale, use or other dealings
 
27
in this Software without prior written authorization from The Open Group.
 
28
 
 
29
 
 
30
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
 
31
 
 
32
                        All Rights Reserved
 
33
 
 
34
Permission to use, copy, modify, and distribute this software and its 
 
35
documentation for any purpose and without fee is hereby granted, 
 
36
provided that the above copyright notice appear in all copies and that
 
37
both that copyright notice and this permission notice appear in 
 
38
supporting documentation, and that the name of Digital not be
 
39
used in advertising or publicity pertaining to distribution of the
 
40
software without specific, written prior permission.  
 
41
 
 
42
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
 
43
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
 
44
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
 
45
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
46
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
47
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 
48
SOFTWARE.
 
49
 
 
50
******************************************************************/
 
51
/* $XFree86: xc/lib/Xaw/AsciiTextP.h,v 1.9 2001/12/14 19:54:39 dawes Exp $ */
 
52
 
 
53
/*
 
54
 * AsciiText.c - Private header file for AsciiText Widget.
 
55
 *
 
56
 * This Widget is intended to be used as a simple front end to the 
 
57
 * text widget with an ascii source and ascii sink attached to it.
 
58
 *
 
59
 * Date:    June 29, 1989
 
60
 *
 
61
 * By:      Chris D. Peterson
 
62
 *          MIT X Consortium 
 
63
 *          kit@expo.lcs.mit.edu
 
64
 */
 
65
 
 
66
#ifndef _AsciiTextP_h
 
67
#define _AsciiTextP_h
 
68
 
 
69
#include <X11/Xaw/TextP.h>
 
70
#include <X11/Xaw/AsciiText.h>
 
71
#include <X11/Xaw/AsciiSrc.h>
 
72
#include <X11/Xaw/MultiSrc.h>
 
73
 
 
74
typedef struct {
 
75
  XtPointer extension;
 
76
} AsciiClassPart;
 
77
 
 
78
typedef struct _AsciiTextClassRec {
 
79
    CoreClassPart       core_class;
 
80
    SimpleClassPart     simple_class;
 
81
    TextClassPart       text_class;
 
82
    AsciiClassPart      ascii_class;
 
83
} AsciiTextClassRec;
 
84
 
 
85
extern AsciiTextClassRec asciiTextClassRec;
 
86
 
 
87
typedef struct {
 
88
    int resource;
 
89
#ifndef OLDXAW
 
90
    XtPointer pad[4];   /* for future use and keep binary compatability */
 
91
#endif
 
92
} AsciiPart;
 
93
 
 
94
typedef struct _AsciiRec {
 
95
    CorePart            core;
 
96
    SimplePart          simple;
 
97
    TextPart            text;
 
98
    AsciiPart           ascii;
 
99
} AsciiRec;
 
100
 
 
101
/*
 
102
 * Ascii String Emulation widget
 
103
 */
 
104
#ifdef ASCII_STRING
 
105
typedef struct {
 
106
  XtPointer extension;
 
107
} AsciiStringClassPart;
 
108
 
 
109
typedef struct _AsciiStringClassRec {
 
110
    CoreClassPart       core_class;
 
111
    SimpleClassPart     simple_class;
 
112
    TextClassPart       text_class;
 
113
    AsciiClassPart      ascii_class;
 
114
    AsciiStringClassPart string_class;
 
115
} AsciiStringClassRec;
 
116
 
 
117
extern AsciiStringClassRec asciiStringClassRec;
 
118
 
 
119
typedef struct {
 
120
    int resource;
 
121
#ifndef OLDXAW
 
122
    XtPointer pad[4];   /* for future use and keep binary compatability */
 
123
#endif
 
124
} AsciiStringPart;
 
125
 
 
126
typedef struct _AsciiStringRec {
 
127
    CorePart            core;
 
128
    SimplePart          simple;
 
129
    TextPart            text;
 
130
    AsciiPart           ascii;
 
131
    AsciiStringPart     ascii_str;
 
132
} AsciiStringRec;
 
133
#endif /* ASCII_STRING */
 
134
 
 
135
#ifdef ASCII_DISK
 
136
/*
 
137
 * Ascii Disk Emulation widget
 
138
 */
 
139
typedef struct {
 
140
    XtPointer extension;
 
141
} AsciiDiskClassPart;
 
142
 
 
143
typedef struct _AsciiDiskClassRec {
 
144
    CoreClassPart       core_class;
 
145
    SimpleClassPart     simple_class;
 
146
    TextClassPart       text_class;
 
147
    AsciiClassPart      ascii_class;
 
148
    AsciiDiskClassPart  disk_class;
 
149
} AsciiDiskClassRec;
 
150
 
 
151
extern AsciiDiskClassRec asciiDiskClassRec;
 
152
 
 
153
typedef struct {
 
154
    char resource;
 
155
#ifndef OLDXAW
 
156
    XtPointer pad[4];   /* for future use and keep binary compatability */
 
157
#endif
 
158
} AsciiDiskPart;
 
159
 
 
160
typedef struct _AsciiDiskRec {
 
161
    CorePart            core;
 
162
    SimplePart          simple;
 
163
    TextPart            text;
 
164
    AsciiPart           ascii;
 
165
    AsciiDiskPart       ascii_disk;
 
166
} AsciiDiskRec;
 
167
#endif /* ASCII_DISK */
 
168
 
 
169
#endif /* _AsciiTextP_h */