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

« back to all changes in this revision

Viewing changes to unix/xc/lib/dps/dpsXint.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
 * dpsXint.h    -- internal definitions to dpsXclient.c
 
3
 *
 
4
 * (c) Copyright 1989-1994 Adobe Systems Incorporated.
 
5
 * All rights reserved.
 
6
 * 
 
7
 * Permission to use, copy, modify, distribute, and sublicense this software
 
8
 * and its documentation for any purpose and without fee is hereby granted,
 
9
 * provided that the above copyright notices appear in all copies and that
 
10
 * both those copyright notices and this permission notice appear in
 
11
 * supporting documentation and that the name of Adobe Systems Incorporated
 
12
 * not be used in advertising or publicity pertaining to distribution of the
 
13
 * software without specific, written prior permission.  No trademark license
 
14
 * to use the Adobe trademarks is hereby granted.  If the Adobe trademark
 
15
 * "Display PostScript"(tm) is used to describe this software, its
 
16
 * functionality or for any other purpose, such use shall be limited to a
 
17
 * statement that this software works in conjunction with the Display
 
18
 * PostScript system.  Proper trademark attribution to reflect Adobe's
 
19
 * ownership of the trademark shall be given whenever any such reference to
 
20
 * the Display PostScript system is made.
 
21
 * 
 
22
 * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR
 
23
 * ANY PURPOSE.  IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
 
24
 * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
 
25
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 
26
 * NON- INFRINGEMENT OF THIRD PARTY RIGHTS.  IN NO EVENT SHALL ADOBE BE LIABLE
 
27
 * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL
 
28
 * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT,
 
29
 * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN
 
30
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.  ADOBE WILL NOT
 
31
 * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE.
 
32
 * 
 
33
 * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems
 
34
 * Incorporated which may be registered in certain jurisdictions
 
35
 * 
 
36
 * Author:  Adobe Systems Incorporated
 
37
 */
 
38
 
 
39
#ifndef DPSXINT_H
 
40
#define DPSXINT_H
 
41
 
 
42
#include <X11/X.h>
 
43
#include <DPS/dpsXclient.h>
 
44
 
 
45
/* The first part of this structure is generic; the last part is
 
46
   implementation-specific. */
 
47
 
 
48
typedef struct _t_DPSPrivContextRec {
 
49
  char *priv;
 
50
  DPSSpace space;
 
51
  DPSProgramEncoding programEncoding;
 
52
  DPSNameEncoding nameEncoding;
 
53
  DPSProcs procs;
 
54
  DPSTextProc textProc;
 
55
  DPSErrorProc errorProc;
 
56
  DPSResults resultTable;
 
57
  unsigned int resultTableLength;
 
58
  struct _t_DPSContextRec *chainParent, *chainChild;
 
59
  unsigned int contextFlags;
 
60
  DPSContextExtensionRec *extension;
 
61
  
 
62
  struct _t_DPSPrivContextRec *next;
 
63
  integer lastNameIndex, cid;
 
64
  boolean eofReceived;
 
65
  char *wh;
 
66
  char *buf, *outBuf, *objBuf;
 
67
  integer nBufChars, nOutBufChars, nObjBufChars;
 
68
  DPSNumFormat numFormat;
 
69
  boolean resyncing;    /* Error has occurred and waiting ResetContext */
 
70
  int *numstringOffsets;        /* see comment below */
 
71
 
 
72
/* Everthing after this is XDPS-specific */
 
73
 
 
74
  boolean creator;      /* Did this app. create the context? */
 
75
  int statusFromEvent;  /* Latest status reported by an event during reset. */
 
76
  XDPSStatusProc statusProc;
 
77
  boolean zombie;    /* To avoid DPSAwaitReturnValues */
 
78
  XDPSReadyProc readyProc;
 
79
} DPSPrivContextRec, *DPSPrivContext;
 
80
 
 
81
/* The numstringOffsets field lists offsets of encoded number strings in
 
82
   the current buffer.  If non NULL, the first entry contains the size of
 
83
   the allocated offset buffer and the second entry contains the next
 
84
   available offset entry for use. */
 
85
 
 
86
/* The first part of this structure is generic; the last part is
 
87
   implementation-specific. */
 
88
 
 
89
typedef struct _t_DPSPrivSpaceRec {
 
90
  DPSSpaceProcs procs;
 
91
  
 
92
  struct _t_DPSPrivSpaceRec *next;
 
93
  long int lastNameIndex, sid;
 
94
  char *wh; /* KLUDGE to support DPSSendDestroySpace */
 
95
  DPSPrivContext firstContext;
 
96
 
 
97
/* Everthing after this is XDPS-specific */
 
98
 
 
99
  boolean  creator;     /* Did this app. create the space? */
 
100
} DPSPrivSpaceRec, *DPSPrivSpace;
 
101
 
 
102
#include "dpsint.h"
 
103
 
 
104
#endif /* DPSXINT_H */