2 * version.c Print version number and exit.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 * Copyright 1999-2012 The FreeRADIUS server project
21 * Copyright 2012 Alan DeKok <aland@ox.org>
22 * Copyright 2000 Chris Parker <cparker@starnetusa.com>
25 #include <freeradius-devel/ident.h>
28 #include <freeradius-devel/radiusd.h>
31 * Display the revision number for this program
33 void NEVER_RETURNS version(void)
36 printf("%s: %s\n", progname, radiusd_version);
38 printf("Copyright (C) 1999-2012 The FreeRADIUS server project and contributors.\n");
39 printf("There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n");
40 printf("PARTICULAR PURPOSE.\n");
41 printf("You may redistribute copies of FreeRADIUS under the terms of the\n");
42 printf("GNU General Public License.\n");
43 printf("For more information about these matters, see the file named COPYRIGHT.\n");
48 printf("Functionality: ");
50 #ifdef WITH_ACCOUNTING
51 printf("accounting, ");
53 printf("authentication, "); /* always enabled */
58 #ifdef WITH_COMMAND_SOCKET
59 printf("control-socket, ");
67 #ifdef WITH_DYNAMIC_CLIENTS
68 printf("dynamic clients, ");
76 #ifdef HAVE_PCREPOSIX_H
77 printf("regex-PCRE, ");
80 printf("regex-posix, ");
84 #ifdef WITH_SESSION_MGMT
85 printf("session-management, ");