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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/glxStub/glxstub.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
/* $XFree86: xc/programs/Xserver/glxStub/glxstub.c,v 1.4 1997/05/03 09:15:55 dawes Exp $ */
 
2
 
 
3
/*
 
4
 * Copyright 1997  The XFree86 Project
 
5
 *
 
6
 * Permission is hereby granted, free of charge, to any person obtaining a 
 
7
 * copy of this software and associated documentation files (the "Software"), 
 
8
 * to deal in the Software without restriction, including without limitation 
 
9
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 
10
 * and/or sell copies of the Software, and to permit persons to whom the 
 
11
 * Software is furnished to do so, subject to the following conditions:
 
12
 *
 
13
 * The above copyright notice and this permission notice shall be included in
 
14
 * all copies or substantial portions of the Software.
 
15
 * 
 
16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL 
 
19
 * HARM HANEMAAYER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
 
20
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 
 
21
 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
 
22
 * SOFTWARE.
 
23
 * 
 
24
 */
 
25
 
 
26
#include "X.h"
 
27
#include "misc.h"
 
28
#include "dixstruct.h"
 
29
 
 
30
/*
 
31
 *  Stubs for systems that don't support loadable modules.
 
32
 *  This allows the server to be relinked via the linkkit with
 
33
 *  compatible implementations of the GLX protocol.
 
34
 */
 
35
 
 
36
void
 
37
GlxExtensionInit(INITARGS)
 
38
{
 
39
   ErrorF("GLX extension library not linked, use linkkit\n");
 
40
}
 
41
 
 
42
int
 
43
GlxInitVisuals (
 
44
#if NeedFunctionPrototypes
 
45
    VisualPtr *         visualp,
 
46
    DepthPtr *  depthp,
 
47
    int *               nvisualp,
 
48
    int *               ndepthp,
 
49
    int *               rootDepthp,
 
50
    VisualID *  defaultVisp,
 
51
    unsigned long       sizes,
 
52
    int                 bitsPerRGB
 
53
#endif
 
54
) {}
 
55