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

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/parser/xf86Optrec.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/Xserver/hw/xfree86/parser/xf86Optrec.h,v 1.10 2001/06/30 04:00:24 paulo Exp $ */
 
2
/* 
 
3
 * 
 
4
 * Copyright (c) 1997  Metro Link Incorporated
 
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
 * THE X CONSORTIUM 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
 * Except as contained in this notice, the name of the Metro Link shall not be
 
25
 * used in advertising or otherwise to promote the sale, use or other dealings
 
26
 * in this Software without prior written authorization from Metro Link.
 
27
 * 
 
28
 */
 
29
 
 
30
/* 
 
31
 * This file contains the Option Record that is passed between the Parser,
 
32
 * and Module setup procs.
 
33
 */
 
34
#ifndef _xf86Optrec_h_
 
35
#define _xf86Optrec_h_
 
36
#include <stdio.h>
 
37
 
 
38
/* 
 
39
 * all records that need to be linked lists should contain a GenericList as
 
40
 * their first field.
 
41
 */
 
42
typedef struct generic_list_rec
 
43
{
 
44
        void *next;
 
45
}
 
46
GenericListRec, *GenericListPtr, *glp;
 
47
 
 
48
/*
 
49
 * All options are stored using this data type.
 
50
 */
 
51
typedef struct
 
52
{
 
53
        GenericListRec list;
 
54
        char *opt_name;
 
55
        char *opt_val;
 
56
        int opt_used;
 
57
        char *opt_comment;
 
58
}
 
59
XF86OptionRec, *XF86OptionPtr;
 
60
 
 
61
 
 
62
XF86OptionPtr xf86addNewOption(XF86OptionPtr head, char *name, char *val);
 
63
XF86OptionPtr xf86optionListDup(XF86OptionPtr opt);
 
64
void xf86optionListFree(XF86OptionPtr opt);
 
65
char *xf86optionName(XF86OptionPtr opt);
 
66
char *xf86optionValue(XF86OptionPtr opt);
 
67
XF86OptionPtr xf86newOption(char *name, char *value);
 
68
XF86OptionPtr xf86nextOption(XF86OptionPtr list);
 
69
XF86OptionPtr xf86findOption(XF86OptionPtr list, const char *name);
 
70
char *xf86findOptionValue(XF86OptionPtr list, const char *name);
 
71
int xf86findOptionBoolean (XF86OptionPtr, const char *, int);
 
72
XF86OptionPtr xf86optionListCreate(const char **options, int count, int used);
 
73
XF86OptionPtr xf86optionListMerge(XF86OptionPtr head, XF86OptionPtr tail);
 
74
char *xf86configStrdup (const char *s);
 
75
int xf86nameCompare (const char *s1, const char *s2);
 
76
char *xf86uLongToString(unsigned long i);
 
77
void xf86debugListOptions(XF86OptionPtr);
 
78
XF86OptionPtr xf86parseOption(XF86OptionPtr head);
 
79
void xf86printOptionList(FILE *fp, XF86OptionPtr list, int tabs);
 
80
 
 
81
 
 
82
#endif /* _xf86Optrec_h_ */