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

« back to all changes in this revision

Viewing changes to unix/xc/lib/X11/XlcSL.c

  • 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
Copyright 1985, 1986, 1987, 1991, 1998  The Open Group
 
3
 
 
4
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
 
5
 
 
6
Permission is hereby granted, free of charge, to any person obtaining a
 
7
copy of this software and associated documentation files (the
 
8
"Software"), to deal in the Software without restriction, including
 
9
without limitation the rights to use, copy, modify, merge, publish,
 
10
distribute, sublicense, and/or sell copies of the Software, and to
 
11
permit persons to whom the Software is furnished to do so, subject to
 
12
the following conditions: The above copyright notice and this
 
13
permission notice shall be included in all copies or substantial
 
14
portions of the Software.
 
15
 
 
16
 
 
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
18
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
19
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
20
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
 
21
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 
22
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
 
23
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
 
24
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
 
25
 
 
26
 
 
27
Except as contained in this notice, the names of The Open Group and/or
 
28
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
 
29
promote the sale, use or other dealings in this Software without prior
 
30
written authorization from The Open Group and/or Sun Microsystems,
 
31
Inc., as applicable.
 
32
 
 
33
 
 
34
X Window System is a trademark of The Open Group
 
35
 
 
36
OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
 
37
logo, LBX, X Window System, and Xinerama are trademarks of the Open
 
38
Group. All other trademarks and registered trademarks mentioned herein
 
39
are the property of their respective owners. No right, title or
 
40
interest in or to any trademark, service mark, logo or trade name of
 
41
Sun Microsystems, Inc. or its licensors is granted.
 
42
 
 
43
*/
 
44
 
 
45
#include "Xlibint.h"
 
46
#include "Xlcint.h"
 
47
 
 
48
extern XIM _XDefaultOpenIM(
 
49
#if NeedNestedPrototypes
 
50
        XLCd, Display *, XrmDatabase, char *, char *
 
51
#endif
 
52
                           );
 
53
 
 
54
Bool
 
55
_XInitDefaultIM(lcd)
 
56
XLCd lcd;
 
57
{
 
58
    if(lcd == (XLCd)NULL)
 
59
        return False;
 
60
 
 
61
    lcd->methods->open_im = _XDefaultOpenIM;
 
62
    lcd->methods->register_callback = NULL;
 
63
    lcd->methods->unregister_callback = NULL;
 
64
    return True;
 
65
}
 
66
 
 
67
extern XOM _XDefaultOpenOM(
 
68
#if NeedFunctionPrototypes
 
69
    XLCd, Display*, XrmDatabase, _Xconst char*, _Xconst char*
 
70
#endif
 
71
                           );
 
72
 
 
73
Bool
 
74
_XInitDefaultOM(lcd)
 
75
    XLCd lcd;
 
76
{
 
77
    lcd->methods->open_om = _XDefaultOpenOM;
 
78
    return True;
 
79
}