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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_mouse.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/hw/xfree86/os-support/linux/lnx_mouse.c,v 1.1 1999/05/17 13:17:18 dawes Exp $ */
 
2
 
 
3
/*
 
4
 * Copyright 1999 by The XFree86 Project, Inc.
 
5
 */
 
6
 
 
7
#include "X.h"
 
8
#include "xf86.h"
 
9
#include "xf86Xinput.h"
 
10
#include "xf86OSmouse.h"
 
11
 
 
12
static int
 
13
SupportedInterfaces(void)
 
14
{
 
15
    return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_XPS2 | MSE_AUTO;
 
16
}
 
17
 
 
18
OSMouseInfoPtr
 
19
xf86OSMouseInit(int flags)
 
20
{
 
21
    OSMouseInfoPtr p;
 
22
 
 
23
    p = xcalloc(sizeof(OSMouseInfoRec), 1);
 
24
    if (!p)
 
25
        return NULL;
 
26
    p->SupportedInterfaces = SupportedInterfaces;
 
27
    return p;
 
28
}
 
29