OPENAFS-SA-2016-002 VldbListByAttributes information leak
[openafs.git] / src / bucoord / btest.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #include <afsconfig.h>
11 #include <afs/param.h>
12
13 #include <roken.h>
14
15 #include <lwp.h>
16 #include <rx/rx.h>
17 #include <afs/bubasics.h>
18 #include "bc.h"
19
20 #include "AFS_component_version_number.c"
21
22 int
23 main(int argc, char **argv)
24 {
25     struct rx_securityClass *rxsc;
26     struct rx_connection *tconn;
27     afs_int32 code;
28
29     rx_Init(0);
30     rxsc = rxnull_NewClientSecurityObject();
31     tconn =
32         rx_NewConnection(htonl(0x7f000001), htons(BC_MESSAGEPORT), 1, rxsc,
33                          0);
34     code = BC_Print(tconn, 1, 2, argv[1]);
35     printf("Done, code %d\n", code);
36     exit(0);
37 }