#endif
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
-/*
- * Check for inclusion of <time.h>, versus <sys/time.h>
- * Taken verbatim from the autoconf manual.
- */
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-# else
-# include <time.h>
-# endif
-#endif
-
#include <freeradius-devel/radius.h>
#include <freeradius-devel/token.h>
#include <freeradius-devel/hash.h>
#include <freeradius-devel/ident.h>
RCSIDH(missing_h, "$Id$")
+#include <freeradius-devel/autoconf.h>
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <string.h>
#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#endif
/*
+ * Check for inclusion of <time.h>, versus <sys/time.h>
+ * Taken verbatim from the autoconf manual.
+ */
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
+/*
* Functions from missing.c
*/
#include <freeradius-devel/conffile.h>
#include <freeradius-devel/realms.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
typedef pthread_t child_pid_t;
#include <freeradius-devel/ident.h>
RCSIDH(udpfromtoh, "$Id$")
-#include <sys/socket.h>
+#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
+#ifdef WITH_UDPFROMTO
int udpfromto_init(int s);
int recvfromto(int s, void *buf, size_t len, int flags,
struct sockaddr *from, socklen_t *fromlen,
int sendfromto(int s, void *buf, size_t len, int flags,
struct sockaddr *from, socklen_t fromlen,
struct sockaddr *to, socklen_t tolen);
+#endif
#endif
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
-#include <stdlib.h>
#include <ctype.h>
-#include <string.h>
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#include <sys/stat.h>
#endif
-#include <unistd.h>
-
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
-
#define DICT_VALUE_MAX_NAME_LEN (128)
#define DICT_VENDOR_MAX_NAME_LEN (128)
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
#include <freeradius-devel/event.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
typedef struct lrad_fifo_entry_t {
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
-#include <string.h>
#include <ctype.h>
-#include <stdlib.h>
-
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
/*
* Two types of filters are supported, GENERIC and IP. The identifiers
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <netdb.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#include <freeradius-devel/libradius.h>
+
#include <ctype.h>
#include <sys/param.h>
-#include <freeradius-devel/missing.h>
-
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
+#include <freeradius-devel/libradius.h>
#include <freeradius-devel/hash.h>
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <string.h>
-#include <freeradius-devel/md5.h>
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
+#include <freeradius-devel/md5.h>
/*
unsigned char* text; pointer to data stream
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <string.h>
-#include <sys/types.h>
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
+#include <freeradius-devel/libradius.h>
#include <freeradius-devel/sha1.h>
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
/*
uint8_t* text; pointer to data stream
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
#define RANDSIZL (8) /* I recommend 8 for crypto, 4 for simulations */
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
char librad_errstr[1024];
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
+#include <freeradius-devel/libradius.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <sys/file.h>
#include <fcntl.h>
-#include <unistd.h>
-
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
int librad_dodns = 0;
int librad_debug = 0;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <ctype.h>
-
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
+#include <ctype.h>
+
#ifndef HAVE_CRYPT
char *crypt(char *key, char *salt)
{
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
-#include <unistd.h>
-#include <stdlib.h>
-
/*
* Take the key fields of a request packet, and convert it to a
* hash.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
#include <ctype.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
/*
* Convert a string to something printable.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
#include <freeradius-devel/md5.h>
-#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#include <fcntl.h>
#include <ctype.h>
#include <freeradius-devel/udpfromto.h>
#endif
-
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
-#ifdef WIN32
-#include <process.h>
-#endif
-
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
-
/*
* The RFC says 4096 octets max, and most packets are less than 256.
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/libradius.h>
/* red-black tree description */
#ifndef HAVE_STRLCAT
-#include <sys/types.h>
-#include <string.h>
#include <freeradius-devel/missing.h>
/*
#ifndef HAVE_STRLCPY
-#include <sys/types.h>
#include <freeradius-devel/missing.h>
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
+#include <freeradius-devel/libradius.h>
#include <freeradius-devel/token.h>
+#include <ctype.h>
+
static const LRAD_NAME_NUMBER tokens[] = {
{ "=~", T_OP_REG_EQ, }, /* order is important! */
{ "!~", T_OP_REG_NE, },
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/udpfromto.h>
#ifdef WITH_UDPFROMTO
-#include <sys/types.h>
-
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
-#include <netinet/in.h>
-#include <errno.h>
-#include <unistd.h>
#include <fcntl.h>
-#include <string.h>
-#include <freeradius-devel/udpfromto.h>
int udpfromto_init(int s)
{
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <sys/types.h>
+#include <freeradius-devel/libradius.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#ifdef HAVE_MALLOC_H
# include <regex.h>
#endif
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
-
static const char *months[] = {
"jan", "feb", "mar", "apr", "may", "jun",
"jul", "aug", "sep", "oct", "nov", "dec" };
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
+#include <ctype.h>
+
/*
* Return a short string showing the terminal server, port
* and calling station ID.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
struct radclient_list {
/*
* FIXME: One set of trees for IPv4, and another for IPv6?
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/modules.h>
-
typedef enum conf_type {
CONF_ITEM_INVALID = 0,
CONF_ITEM_PAIR,
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <string.h>
+#include <freeradius-devel/libradius.h>
#ifdef HAVE_CRYPT_H
#include <crypt.h>
-#else
-#include <unistd.h>
#endif
#ifdef HAVE_PTHREAD_H
static pthread_mutex_t lrad_crypt_mutex;
#endif
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
/*
* performs a crypt password check in an thread-safe way.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-#include <signal.h>
#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/event.h>
#include <freeradius-devel/modules.h>
+#include <freeradius-devel/event.h>
#include <freeradius-devel/radius_snmp.h>
+#include <freeradius-devel/rad_assert.h>
+
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
#define USEC (1000000)
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/file.h>
-#include <stdlib.h>
-#include <string.h>
#include <fcntl.h>
#include <ctype.h>
#include <signal.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
#define MAX_ARGV (256)
/*
* Execute a program on successful authentication.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
/*
* Free a PAIR_LIST
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/radius_snmp.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/resource.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#include <sys/stat.h>
#endif
-#ifdef WITH_UDPFROMTO
-#include <freeradius-devel/udpfromto.h>
-#endif
-
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
-#include <freeradius-devel/radius_snmp.h>
-
static time_t start_time = 0;
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <errno.h>
-
#include <freeradius-devel/radiusd.h>
#ifdef HAVE_SYSLOG_H
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/resource.h>
-#include <netdb.h>
#include <sys/stat.h>
#include <grp.h>
#include <pwd.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/modpriv.h>
#include <freeradius-devel/modcall.h>
+#include <freeradius-devel/rad_assert.h>
/* mutually-recursive static functions need a prototype up front */
static modcallable *do_compile_modgroup(modcallable *,
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modpriv.h>
#include <freeradius-devel/modcall.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <freeradius-devel/libradius.h>
+#include <freeradius-devel/conf.h>
+#include <freeradius-devel/radpaths.h>
-#include <string.h>
#include <ctype.h>
-#include <netdb.h>
-
-#ifdef HAVE_SYS_SELECT_H
-# include <sys/select.h>
-#endif
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#include <assert.h>
-#include <freeradius-devel/conf.h>
-#include <freeradius-devel/radpaths.h>
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
-
static int retries = 10;
static float timeout = 3;
static const char *secret = NULL;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
#ifdef WITH_SNMP
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#include <string.h>
-
#include <freeradius-devel/smux.h>
#include <freeradius-devel/radius_snmp.h>
-#include <freeradius-devel/radiusd.h>
extern int need_reload;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/radius_snmp.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/file.h>
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
#include <fcntl.h>
#include <ctype.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#include <signal.h>
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
-#ifdef HAVE_SYS_SELECT_H
-# include <sys/select.h>
-#endif
-
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/radius_snmp.h>
-
/*
* Global variables.
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#define _LIBRADIUS 1
+#include <freeradius-devel/libradius.h>
#include <pcap.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <unistd.h>
-#define _LIBRADIUS 1
#include <freeradius-devel/radpaths.h>
#include <freeradius-devel/conf.h>
-#include <freeradius-devel/libradius.h>
#include <freeradius-devel/radsniff.h>
static const char *radius_secret = "testing123";
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/sysutmp.h>
+#include <freeradius-devel/radutmp.h>
-#include <stdlib.h>
-#include <string.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <ctype.h>
-#include <freeradius-devel/sysutmp.h>
-#include <freeradius-devel/radutmp.h>
-#include <freeradius-devel/radiusd.h>
-
/*
* FIXME: put in header file.
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
static rbtree_t *realms_byname = NULL;
static rbtree_t *home_servers_byaddr = NULL;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include <signal.h>
-#include <errno.h>
#include <sys/wait.h>
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
/*
* End a session by faking a Stop packet to all accounting modules.
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
#ifdef WITH_SNMP
-#include <sys/socket.h>
-#include <sys/file.h>
+#include <freeradius-devel/radius_snmp.h>
+#include <freeradius-devel/smux.h>
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
+#include <sys/file.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <fcntl.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/radius_snmp.h>
-#include <freeradius-devel/smux.h>
-
#define min(A,B) ((A) < (B) ? (A) : (B))
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
/*
* Other OS's have sem_init, OS X doesn't.
#include <sys/wait.h>
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/modules.h>
-
#ifdef HAVE_PTHREAD_H
#ifdef HAVE_OPENSSL_CRYPTO_H
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-
/*
* The signal() function in Solaris 2.5.1 sets SA_NODEFER in
* sa_flags, which causes grief if signal() is called in the
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
+#include <freeradius-devel/radiusd.h>
#ifdef HAVE_REGEX_H
# include <regex.h>
#endif
#endif
-#include <freeradius-devel/radiusd.h>
-
struct cmp {
int attribute;
int otherattr;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
#include <freeradius-devel/radiusd.h>
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
-
#include <freeradius-devel/rad_assert.h>
+#include <ctype.h>
+
typedef struct xlat_t {
char module[MAX_STRING_LEN];
int length;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+#include <ctype.h>
+
/*
* Room for at least 16 attributes.
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
typedef struct rlm_acctlog_t {
char *acctstart;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
#include <limits.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/modules.h>
/*
* Define a structure with the module configuration, so it can
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#ifdef HAVE_REGEX_H
# include <regex.h>
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
#define RLM_REGEX_INPACKET 0
#define RLM_REGEX_INCONFIG 1
#define RLM_REGEX_INREPLY 2
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include "config.h"
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
+#include "config.h"
#include <gdbm.h>
#include <time.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+
#ifdef HAVE_REGEX_H
# include <regex.h>
#endif
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
/*
* Define a structure for our module configuration.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include "config.h"
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
+#include "config.h"
#include <gdbm.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/md5.h>
+#include <ctype.h>
+
#define SM_AUTHTYPE ((11406<<16)|101)
#define SM_CHALLENGE ((11406<<16)|102)
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <string.h>
-#include <stdlib.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
#ifdef HAVE_NDBM_H
#include <ndbm.h>
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
#ifdef SANDY_MOD
# include "sandymod.h"
#endif
* Copyright 2001 Koulik Andrei, Sandy Service
*/
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
#include <fcntl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#ifdef HAVE_NDBM_H
#include <ndbm.h>
#include <gdbm-ndbm.h>
#endif
-#include <unistd.h>
#include <ctype.h>
#define LOTSTUP 20
char sccsid[] =
"$Id$ sandy module project\n Copyright 2001 Sandy Service\nCopyright 2001 Koulik Andrei";
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
#include <fcntl.h>
-#include <stdlib.h>
-
#ifdef HAVE_NDBM_H
#include <ndbm.h>
#endif
#include <gdbm-ndbm.h>
#endif
-#include <stdio.h>
#include <ctype.h>
-#include <string.h>
-
-#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/conf.h>
#include <freeradius-devel/radpaths.h>
-#include <freeradius-devel/missing.h>
#define MAX_BUFF_SIZE 1024
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
#include <sys/stat.h>
-#include <sys/select.h>
-
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
#include <fcntl.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/rad_assert.h>
-
#define DIRLEN 8192
static const char *packet_codes[] = {
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSIDH(eap_h, "$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <string.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-
#include <freeradius-devel/rad_assert.h>
#include "eap_types.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/libradius.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#include <string.h>
#include <ctype.h>
-#include <netdb.h>
-#include <sys/socket.h>
-
-#if HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
-#if HAVE_SYS_SELECT_H
-# include <sys/select.h>
-#endif
#if HAVE_GETOPT_H
# include <getopt.h>
#include <freeradius-devel/conf.h>
#include <freeradius-devel/radpaths.h>
-#include <freeradius-devel/missing.h>
#include <freeradius-devel/md5.h>
#include "eap_types.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include "rlm_eap.h"
+#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+#include "rlm_eap.h"
+
static const CONF_PARSER module_config[] = {
{ "default_eap_type", PW_TYPE_STRING_PTR,
offsetof(rlm_eap_t, default_eap_type_name), NULL, "md5" },
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+#include <ctype.h>
+
/*
* Define a structure for our module configuration.
*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
-
/*
* Compare a Connect-Info and a Connect-Rate
*/
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/stat.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <pwd.h>
#include <grp.h>
#include <ctype.h>
#include <fcntl.h>
#include <limits.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
struct fastuser_instance {
char *compat_mode;
int hash_reload;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <sys/stat.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
#include <limits.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
struct file_instance {
char *compat_mode;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include "config.h"
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "config.h"
#include <ctype.h>
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
#include "../../include/md5.h"
#include <gdbm.h>
-#include <time.h>
#ifdef NEEDS_GDBM_SYNC
# define GDBM_SYNCOPT GDBM_SYNC
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <stdio.h>
+#include <freeradius-devel/libradius.h>
#include <fcntl.h>
#include <gdbm.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
#include "../../include/md5.h"
-#include <freeradius-devel/missing.h>
-#include <freeradius-devel/libradius.h>
int active=0;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <netinet/in.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <netdb.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
+
#include <pwd.h>
-#include <time.h>
#include <ctype.h>
-#include <string.h>
#include <lber.h>
#include <ldap.h>
-#include <errno.h>
-#include <unistd.h>
-#include <pthread.h>
-
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/conffile.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/rad_assert.h>
-
#ifndef HAVE_PTHREAD_H
/*
* This is a lot simpler than putting ifdef's around
#define pthread_mutex_unlock(a)
#define pthread_mutex_init(a,b)
#define pthread_mutex_destroy(a)
+#else
+#include <pthread.h>
#endif
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
-
/*
* Define a structure for our module configuration.
*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+#include <ctype.h>
+
/*
* Define a structure for our module configuration.
*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-
static const char *days[] =
{ "su", "mo", "tu", "we", "th", "fr", "sa", "wk", "any", "al" };
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-
-#include <freeradius-devel/md5.h>
#include <freeradius-devel/rad_assert.h>
+#include <freeradius-devel/md5.h>
+
+#include <ctype.h>
#include "smbdes.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <freeradius-devel/libradius.h>
+#include <freeradius-devel/md4.h>
#include <ctype.h>
-#include <freeradius-devel/md4.h>
#include "smbdes.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include "otp.h"
#include "otp_pw_valid.h"
-#include <errno.h>
+#ifdef HAVE_PTHREAD_H
#include <pthread.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/socket.h>
+#endif
#include <sys/un.h>
-#include <unistd.h>
/* transform otpd return codes into rlm return codes */
/* avoid inclusion of these FR headers which conflict w/ OpenSSL */
#define _LRAD_MD4_H
#define _LRAD_SHA1_H
-#include <freeradius-devel/rad_assert.h>
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/rad_assert.h>
#include "extern.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include "extern.h"
#include "otp.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <time.h>
-#include <netinet/in.h> /* htonl(), ntohl() */
-
/* Global data */
static unsigned char hmac_key[16]; /* to protect State attribute */
static int ninstance = 0; /* #instances, for global init */
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
#include "config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#ifdef HAVE_SECURITY_PAM_APPL_H
#include <security/pam_appl.h>
#endif
#include <syslog.h>
#endif
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
typedef struct rlm_pam_t {
const char *pam_auth_name;
} rlm_pam_t;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
#include "../../include/md5.h"
#include "../../include/sha1.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-
struct mypasswd {
struct mypasswd *next;
char *listflag;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include "rlm_policy.h"
-
+#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
+
+#include "rlm_policy.h"
/*
* A mapping of configuration file names to internal variables.
#include <freeradius-devel/ident.h>
RCSIDH(rlm_policy_h, "$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#include <string.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/modcall.h>
-
#include <freeradius-devel/rad_assert.h>
/*
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <sys/stat.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
+#include <ctype.h>
+
typedef struct rlm_preprocess_t {
char *huntgroup_file;
char *hints_file;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <Python.h>
-
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
+
+#include <Python.h>
/*
* Define a structure for our module configuration.
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/radutmp.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <fcntl.h>
-#include <time.h>
-#include <errno.h>
#include <limits.h>
#include "config.h"
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/radutmp.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/rad_assert.h>
-
#define LOCK_LEN sizeof(struct radutmp)
static const char porttypes[] = "ASITX";
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/radutmp.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <fcntl.h>
-#include <time.h>
-#include <errno.h>
#include <limits.h>
#include "config.h"
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/radutmp.h>
-#include <freeradius-devel/modules.h>
-#include <freeradius-devel/rad_assert.h>
-
#define LOCK_LEN sizeof(struct radutmp)
static const char porttypes[] = "ASITX";
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
#include <sys/stat.h>
-
-#include <stdlib.h>
-#include <string.h>
-#include <netdb.h>
#include <ctype.h>
#include <fcntl.h>
#include <limits.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
#include "../rlm_eap/libeap/eap_sim.h"
struct sim_file_instance {
#include <string.h>
-#include <freeradius-devel/autoconf.h>
#include <freeradius-devel/libradius.h>
#include "std-includes.h"
#include "rfcnb-priv.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
-#include <freeradius-devel/conffile.h>
#include "valid.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <sys/types.h>
-#include <unistd.h>
+#include <freeradius-devel/radiusd.h>
+
#include <syslog.h>
#include "smblib-priv.h"
#include "valid.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-#include <freeradius-devel/radiusd.h>
#include <sql.h>
#include <sqlcli.h>
#include "rlm_sql.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
#include <isql.h>
#include <isqlext.h>
#include <sqltypes.h>
-#include <freeradius-devel/radiusd.h>
#include "rlm_sql.h"
typedef struct rlm_sql_iodbc_sock {
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/radiusd.h>
#include "config.h"
#ifdef HAVE_MYSQL_MYSQL_H
+#include <mysql/mysql_version.h>
#include <mysql/errmsg.h>
#include <mysql/mysql.h>
#else
#ifdef HAVE_MYSQL_H
+#include <mysql_version.h>
#include <errmsg.h>
#include <mysql.h>
#endif
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <sys/time.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/radiusd.h>
#include <oci.h>
#include "rlm_sql.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/radiusd.h>
#include <libpq-fe.h>
#include "rlm_sql.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <freeradius-devel/radiusd.h>
#include <ctpublic.h>
#include "rlm_sql.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdlib.h>
-#include <string.h>
#include <freeradius-devel/radiusd.h>
#include <sqltypes.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/rad_assert.h>
-#include <stdio.h>
#include <sys/stat.h>
-#include <stdlib.h>
-#include <time.h>
-#include <unistd.h>
-#include <sys/types.h>
#include <sys/wait.h>
-#include <string.h>
-
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
#include "rlm_sql.h"
-#include <freeradius-devel/rad_assert.h>
static char *allowed_chars = NULL;
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/file.h>
-#include <string.h>
#include <sys/stat.h>
-#include <netinet/in.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <netdb.h>
#include <pwd.h>
-#include <time.h>
#include <ctype.h>
-#include <unistd.h>
#include <signal.h>
-#include <errno.h>
#include <sys/wait.h>
-#include <freeradius-devel/radiusd.h>
#include "rlm_sql.h"
#ifdef HAVE_PTHREAD_H
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
#include <fcntl.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <sys/stat.h>
-#include <freeradius-devel/libradius.h>
-#include <freeradius-devel/radiusd.h>
-#include <freeradius-devel/modules.h>
-
static int sql_log_instantiate(CONF_SECTION *conf, void **instance);
static int sql_log_detach(void *instance);
static int sql_log_accounting(void *instance, REQUEST *request);
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
+#include <ctype.h>
+
#define MAX_QUERY_LEN 1024
static int sqlcounter_detach(void *instance);
*/
#include "config.h"
-#include "freeradius-devel/autoconf.h"
-#include "freeradius-devel/libradius.h"
+#include <freeradius-devel/radiusd.h>
+#include <freeradius-devel/modules.h>
+#include <freeradius-devel/modpriv.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <ctype.h>
-#include <stdarg.h>
-#include <netinet/in.h>
-
-#include "freeradius-devel/radiusd.h"
-#include "freeradius-devel/modules.h"
-#include "freeradius-devel/conffile.h"
-#include "freeradius-devel/modpriv.h"
#include "rlm_sql.h"
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
-#include <freeradius-devel/libradius.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdlib.h>
#include <ctype.h>
-#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/modpriv.h>
#include <freeradius-devel/ident.h>
RCSID("$Id$")
-#include <freeradius-devel/autoconf.h>
+#include <freeradius-devel/radiusd.h>
-#include <stdlib.h>
-#include <string.h>
#include <grp.h>
#include <pwd.h>
-#include <sys/types.h>
#include <sys/stat.h>
#include "config.h"
# include <siad.h>
#endif
-#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/sysutmp.h>