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

« back to all changes in this revision

Viewing changes to unix/xc/programs/xterm/xutf8.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
/* $XFree86: xc/programs/xterm/xutf8.h,v 1.1 2001/06/18 19:09:28 dickey Exp $ */
 
2
/*
 
3
Copyright (c) 2001 by Juliusz Chroboczek
 
4
 
 
5
Permission is hereby granted, free of charge, to any person obtaining a copy
 
6
of this software and associated documentation files (the "Software"), to deal
 
7
in the Software without restriction, including without limitation the rights
 
8
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
9
copies of the Software, and to permit persons to whom the Software is
 
10
furnished to do so, subject to the following conditions:
 
11
 
 
12
The above copyright notice and this permission notice shall be included in
 
13
all copies or substantial portions of the Software.
 
14
 
 
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
18
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
19
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
20
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
21
THE SOFTWARE.
 
22
*/
 
23
 
 
24
#ifndef _XLIB_H_
 
25
#error Please include <X11/Xlib.h> before "xutf8.h"
 
26
#endif
 
27
 
 
28
#ifndef X_HAVE_UTF8_STRING
 
29
 
 
30
#undef XA_UTF8_STRING
 
31
Atom _xa_utf8_string(Display*);
 
32
#define XA_UTF8_STRING(dpy) _xa_utf8_string(dpy)
 
33
 
 
34
#undef XUTF8StringStyle
 
35
#define XUTF8StringStyle 4
 
36
 
 
37
int Xutf8TextPropertyToTextList(
 
38
    Display *,
 
39
    const XTextProperty *,
 
40
    char ***,
 
41
    int *
 
42
);
 
43
int
 
44
Xutf8TextListToTextProperty(
 
45
    Display *,
 
46
    char **,
 
47
    int,
 
48
    XICCEncodingStyle,
 
49
    XTextProperty *
 
50
);
 
51
int Xutf8LookupString(
 
52
    XIC,
 
53
    XKeyPressedEvent *,
 
54
    char *,
 
55
    int,
 
56
    KeySym *,
 
57
    Status *
 
58
);
 
59
#else
 
60
void xutf8_dummy(void);
 
61
#endif