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

« back to all changes in this revision

Viewing changes to unix/xc/programs/xterm/fontutils.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
 * $XFree86: xc/programs/xterm/fontutils.h,v 1.10 2000/12/30 19:15:46 dickey Exp $
 
3
 */
 
4
 
 
5
/************************************************************
 
6
 
 
7
Copyright 1998,1999,2000 by Thomas E. Dickey
 
8
 
 
9
                        All Rights Reserved
 
10
 
 
11
Permission is hereby granted, free of charge, to any person obtaining a
 
12
copy of this software and associated documentation files (the
 
13
"Software"), to deal in the Software without restriction, including
 
14
without limitation the rights to use, copy, modify, merge, publish,
 
15
distribute, sublicense, and/or sell copies of the Software, and to
 
16
permit persons to whom the Software is furnished to do so, subject to
 
17
the following conditions:
 
18
 
 
19
The above copyright notice and this permission notice shall be included
 
20
in all copies or substantial portions of the Software.
 
21
 
 
22
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
23
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
24
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 
25
IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
 
26
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 
27
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 
28
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
29
 
 
30
Except as contained in this notice, the name(s) of the above copyright
 
31
holders shall not be used in advertising or otherwise to promote the
 
32
sale, use or other dealings in this Software without prior written
 
33
authorization.
 
34
 
 
35
********************************************************/
 
36
 
 
37
#ifndef included_fontutils_h
 
38
#define included_fontutils_h 1
 
39
 
 
40
#include <ptyx.h>
 
41
#include <proto.h>
 
42
 
 
43
#if OPT_WIDE_CHARS
 
44
#define VT_FONTSET(n,b,w,wb) n, b, w, wb
 
45
#else
 
46
#define VT_FONTSET(n,b,w,wb) n, b
 
47
#endif
 
48
 
 
49
extern int xtermLoadFont (TScreen *screen,
 
50
                          VT_FONTSET(char *nfontname, char *bfontname, char *wfontname, char *wbfontname),
 
51
                          Bool doresize, int fontnum);
 
52
extern void HandleSetFont PROTO_XT_ACTIONS_ARGS;
 
53
extern void SetVTFont (int i, Bool doresize, VT_FONTSET(char *name1, char *name2, char *name3, char *name4));
 
54
extern void xtermComputeFontInfo (TScreen *screen, struct _vtwin *win, XFontStruct *font, int sbwidth);
 
55
extern void xtermSaveFontInfo (TScreen *screen, XFontStruct *font);
 
56
extern void xtermSetCursorBox (TScreen *screen);
 
57
extern void xtermUpdateFontInfo (TScreen *screen, Bool doresize);
 
58
 
 
59
#if OPT_DEC_CHRSET
 
60
extern char *xtermSpecialFont(unsigned atts, unsigned chrset);
 
61
#endif
 
62
 
 
63
#if OPT_BOX_CHARS
 
64
extern Bool xtermMissingChar(unsigned ch, XFontStruct *font);
 
65
extern void xtermDrawBoxChar(TScreen *screen, int ch, unsigned flags, GC gc, int x, int y);
 
66
#endif
 
67
 
 
68
#if OPT_SHIFT_FONTS
 
69
extern void HandleSmallerFont PROTO_XT_ACTIONS_ARGS;
 
70
extern void HandleLargerFont PROTO_XT_ACTIONS_ARGS;
 
71
#endif
 
72
 
 
73
#endif /* included_fontutils_h */