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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xnest/XNFont.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: XNFont.h,v 1.3 2000/08/17 19:53:28 cpqbld Exp $ */
 
2
/*
 
3
 
 
4
Copyright 1993 by Davor Matic
 
5
 
 
6
Permission to use, copy, modify, distribute, and sell this software
 
7
and its documentation for any purpose is hereby granted without fee,
 
8
provided that the above copyright notice appear in all copies and that
 
9
both that copyright notice and this permission notice appear in
 
10
supporting documentation.  Davor Matic makes no representations about
 
11
the suitability of this software for any purpose.  It is provided "as
 
12
is" without express or implied warranty.
 
13
 
 
14
*/
 
15
 
 
16
 
 
17
#ifndef XNESTFONT_H
 
18
#define XNESTFONT_H
 
19
 
 
20
typedef struct {
 
21
  XFontStruct *font_struct;
 
22
} xnestPrivFont;
 
23
 
 
24
extern int xnestFontPrivateIndex;
 
25
 
 
26
#define xnestFontPriv(pFont) \
 
27
  ((xnestPrivFont *)FontGetPrivate(pFont, xnestFontPrivateIndex))
 
28
 
 
29
#define xnestFontStruct(pFont) (xnestFontPriv(pFont)->font_struct)
 
30
 
 
31
#define xnestFont(pFont) (xnestFontStruct(pFont)->fid)
 
32
 
 
33
Bool xnestRealizeFont();
 
34
Bool xnestUnrealizeFont();
 
35
 
 
36
#endif /* XNESTFONT_H */