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

« back to all changes in this revision

Viewing changes to unix/xc/programs/xfs/include/dispatch.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
/*
 
2
 * $XFree86: xc/programs/xfs/include/dispatch.h,v 1.3 2001/08/28 23:44:54 paulo Exp $
 
3
 */
 
4
 
 
5
/************************************************************
 
6
 
 
7
Copyright 1998 by Thomas E. Dickey <dickey@clark.net>
 
8
 
 
9
                        All Rights Reserved
 
10
 
 
11
Permission to use, copy, modify, and distribute this software and its
 
12
documentation for any purpose and without fee is hereby granted,
 
13
provided that the above copyright notice appear in all copies and that
 
14
both that copyright notice and this permission notice appear in
 
15
supporting documentation, and that the name of the above listed
 
16
copyright holder(s) not be used in advertising or publicity pertaining
 
17
to distribution of the software without specific, written prior
 
18
permission.
 
19
 
 
20
THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
 
21
TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 
22
AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
 
23
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
24
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 
25
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 
26
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
27
 
 
28
********************************************************/
 
29
 
 
30
#ifndef _DISPATCH_H_
 
31
#define _DISPATCH_H_ 1
 
32
 
 
33
#include <misc.h>
 
34
extern ClientPtr currentClient;
 
35
 
 
36
extern void Dispatch (void);
 
37
extern int ProcInitialConnection (ClientPtr client);
 
38
extern int ProcEstablishConnection (ClientPtr client);
 
39
#ifdef DEBUG
 
40
#define SendErrToClient(client, error, data)    \
 
41
        fprintf(stderr, "SendErrToClient %s %d\n", __FILE__, __LINE__),\
 
42
        DoSendErrToClient(client, error, data)
 
43
#else
 
44
#define SendErrToClient DoSendErrToClient
 
45
#endif
 
46
extern void DoSendErrToClient (ClientPtr client, int error, pointer data);
 
47
extern int ProcBadRequest (ClientPtr client);
 
48
extern int ProcNoop (ClientPtr client);
 
49
extern int ProcListCatalogues (ClientPtr client);
 
50
extern int ProcSetCatalogues (ClientPtr client);
 
51
extern int ProcGetCatalogues (ClientPtr client);
 
52
extern int ProcCreateAC (ClientPtr client);
 
53
extern int DeleteAuthCont  (pointer value, FSID id);
 
54
extern int ProcFreeAC (ClientPtr client);
 
55
extern int ProcSetAuthorization (ClientPtr client);
 
56
extern int ProcSetResolution (ClientPtr client);
 
57
extern int ProcGetResolution (ClientPtr client);
 
58
extern int ProcListFonts (ClientPtr client);
 
59
extern int ProcListFontsWithXInfo (ClientPtr client);
 
60
extern int ProcOpenBitmapFont (ClientPtr client);
 
61
extern int ProcQueryXInfo (ClientPtr client);
 
62
extern int ProcQueryXExtents (ClientPtr client);
 
63
extern int ProcQueryXBitmaps (ClientPtr client);
 
64
extern int ProcCloseFont (ClientPtr client);
 
65
#if 0
 
66
extern void CloseDownClient (ClientPtr client);
 
67
#endif
 
68
extern void InitProcVectors (void);
 
69
extern void InitClient (ClientPtr client, int i, pointer ospriv);
 
70
extern ClientPtr NextAvailableClient (pointer ospriv);
 
71
extern void MarkClientException (ClientPtr client);
 
72
 
 
73
#endif /* _DISPATCH_H_ */