]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/Xdmcp/RaA8.c
Support RDP5 logon packets.
[rdpsrv] / Xserver / lib / Xdmcp / RaA8.c
1 /*
2  * $XConsortium: RaA8.c,v 1.3 94/04/17 20:16:42 gildea Exp $
3  *
4  * 
5 Copyright (c) 1989  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the name of the X Consortium 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 the X Consortium.
27  * *
28  * Author:  Keith Packard, MIT X Consortium
29  */
30
31 #include <X11/Xos.h>
32 #include <X11/X.h>
33 #include <X11/Xmd.h>
34 #include <X11/Xdmcp.h>
35
36 int
37 XdmcpReallocARRAY8 (array, length)
38     ARRAY8Ptr   array;
39     int         length;
40 {
41     CARD8Ptr    newData;
42
43     newData = (CARD8Ptr) Xrealloc (array->data, length * sizeof (CARD8));
44     if (!newData)
45         return FALSE;
46     array->length = length;
47     array->data = newData;
48     return TRUE;
49 }