diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:00 +0000 |
commit | af754e596a8dbb05ed8580c342e7fe02e08b28e0 (patch) | |
tree | b2f334c2b55ede42081aa6710a72da784547d8ea /src/include/features-h | |
parent | Initial commit. (diff) | |
download | freeradius-af754e596a8dbb05ed8580c342e7fe02e08b28e0.tar.xz freeradius-af754e596a8dbb05ed8580c342e7fe02e08b28e0.zip |
Adding upstream version 3.2.3+dfsg.upstream/3.2.3+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/include/features-h')
-rw-r--r-- | src/include/features-h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/src/include/features-h b/src/include/features-h new file mode 100644 index 0000000..158541f --- /dev/null +++ b/src/include/features-h @@ -0,0 +1,97 @@ +/* + * New defines for minimizing the size of the server, to strip + * out functionality. + * + * This is a hack and should be removed when the protocols are moved + * into individual modules. + */ +#ifndef WITHOUT_PROXY +# define WITH_PROXY (1) +#else +# define WITHOUT_COA (1) +#endif + +#ifndef WITHOUT_UNLANG +# define WITH_UNLANG (1) +#endif + +#ifndef WITHOUT_ACCOUNTING +# define WITH_ACCOUNTING (1) +#endif + +#ifdef WITH_ACCOUNTING +# ifndef WITHOUT_DETAIL +# define WITH_DETAIL (1) +# endif +#endif + +#ifdef WITH_ACCOUNTING +# ifndef WITHOUT_SESSION_MGMT +# define WITH_SESSION_MGMT (1) +# endif +#endif + +#ifndef WITHOUT_DYNAMIC_CLIENTS +# define WITH_DYNAMIC_CLIENTS (1) +#endif + +#ifndef WITHOUT_STATS +# define WITH_STATS +#endif + +#ifndef WITHOUT_COMMAND_SOCKET +# ifdef HAVE_SYS_UN_H +# define WITH_COMMAND_SOCKET (1) +# endif +#endif + +#ifndef WITHOUT_COA +# define WITH_COA (1) +# ifndef WITH_PROXY +# error WITH_COA requires WITH_PROXY +# endif +#endif + +#ifdef WITHOUT_TLS +# ifndef HAVE_OPENSSL_SSL_H +# error TLS requires OpenSSL +# endif +#else +# ifdef HAVE_OPENSSL_SSL_H +# ifndef WITH_TLS +# ifndef NO_OPENSSL +# define WITH_TLS (1) +# endif +# endif +# endif +#endif + +#ifdef WITH_TLS +# ifdef WITH_COA +# ifndef WITHOUT_COA_TUNNEL +# define WITH_COA_TUNNEL (1) +# endif +# endif +#endif + +#ifdef WITH_COA_TUNNEL +# ifdef WITHOUT_TLS +# error Reverse CoA requests requires TLS +# endif +#endif + +#ifdef WITH_RADIUSV11_ONLY +# define WITH_RADIUSV11 +#else +# ifndef WITHOUT_RADIUSV11 +# ifdef WITH_TLS +//# define WITH_RADIUSV11 +# endif +# endif +#endif + +#ifdef WITH_RADIUSV11 +# ifndef WITH_TLS +# error RADIUSv11 requires TLS +# endif +#endif |