2005-07-14 08:50:57 +00:00
/*
2006-09-07 04:52:06 +00:00
a wrapper to override some of the defines that the heimdal roken system looks at
2005-07-14 08:50:57 +00:00
*/
# ifndef _ROKEN_H_
# define _ROKEN_H_
2006-09-07 04:52:06 +00:00
2009-09-20 23:18:34 -07:00
/* Support 'weak' keys for now, it can't be worse than NTLM and we don't want to hard-code the behaviour at this point */
# define HEIM_WEAK_CRYPTO 1
2006-09-07 04:52:06 +00:00
/* path to sysconf - should we force this to samba LIBDIR ? */
# define SYSCONFDIR " / etc"
2010-01-12 13:24:33 +11:00
# define rk_PATH_DELIM ' / '
2006-09-07 04:52:06 +00:00
/* HDB module dir - set to Samba LIBDIR/hdb ? */
# define HDBDIR " / usr / heimdal / lib"
2006-11-13 03:19:59 +00:00
# define LIBDIR " / usr / heimdal / lib"
2009-08-04 13:43:29 +02:00
# define HEIMDAL_LOCALEDIR " / usr / heimdal / locale"
2006-09-07 04:52:06 +00:00
/* Maximum values on all known systems */
# define MaxHostNameLen (64+4)
# define MaxPathLen (1024+4)
2007-01-10 01:51:35 +00:00
/* We want PKINIT */
# define PKINIT 1
2006-11-07 12:04:11 +00:00
# define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
2006-09-07 04:52:06 +00:00
# define VERSION "Samba"
# define ROKEN_LIB_FUNCTION
2010-01-12 13:24:33 +11:00
# define ROKEN_LIB_CALL
2006-09-07 04:52:06 +00:00
# define GETHOSTBYADDR_PROTO_COMPATIBLE
# define GETSERVBYNAME_PROTO_COMPATIBLE
# define OPENLOG_PROTO_COMPATIBLE
# define GETSOCKNAME_PROTO_COMPATIBLE
2006-09-07 04:24:54 +00:00
/* even if we do have dlopen, we don't want heimdal using it */
# undef HAVE_DLOPEN
/* we need to tell roken about the functions that Samba replaces in lib/replace */
# ifndef HAVE_SETEUID
# define HAVE_SETEUID 1
# endif
2009-07-15 18:32:58 +02:00
# ifndef HAVE_STRNLEN
# define HAVE_STRNLEN
# endif
2006-09-07 04:24:54 +00:00
# ifndef HAVE_STRNDUP
# define HAVE_STRNDUP
# endif
2006-09-29 12:24:23 +00:00
2009-03-25 11:20:50 +01:00
# ifndef HAVE_STRLCPY
# define HAVE_STRLCPY
# endif
# ifndef HAVE_STRLCAT
# define HAVE_STRLCAT
# endif
# ifndef HAVE_STRCASECMP
# define HAVE_STRCASECMP
# endif
2009-07-15 18:40:57 +02:00
# ifndef HAVE_ASPRINTF
# define HAVE_ASPRINTF
# endif
# ifndef HAVE_VASPRINTF
# define HAVE_VASPRINTF
# endif
2009-03-25 11:20:50 +01:00
# ifndef HAVE_MKSTEMP
# define HAVE_MKSTEMP
# endif
2007-03-12 16:05:57 +00:00
# ifndef HAVE_SETENV
# define HAVE_SETENV
# endif
# ifndef HAVE_UNSETENV
# define HAVE_UNSETENV
# endif
2006-09-29 12:24:23 +00:00
# ifndef HAVE_VSYSLOG
# define HAVE_VSYSLOG
# endif
2006-09-07 04:24:54 +00:00
# ifndef HAVE_SSIZE_T
# define HAVE_SSIZE_T
# endif
2007-04-16 10:39:26 +00:00
# ifndef HAVE_STRPTIME
# define HAVE_STRPTIME
# endif
2006-11-07 16:03:00 +00:00
# ifndef HAVE_TIMEGM
# define HAVE_TIMEGM
# endif
2007-04-11 06:43:06 +00:00
# ifndef HAVE_INNETGR
# define HAVE_INNETGR
# endif
2009-07-16 10:51:34 +02:00
# ifndef HAVE_INET_ATON
# define HAVE_INET_ATON
# endif
2010-03-30 12:08:52 +11:00
# ifndef HAVE_INET_NTOP
# define HAVE_INET_NTOP
# endif
# ifndef HAVE_INET_PTON
# define HAVE_INET_PTON
# endif
2010-01-12 13:24:33 +11:00
# ifndef HAVE_GETTIMEOFDAY
# define HAVE_GETTIMEOFDAY
# endif
2010-03-30 00:07:10 +11:00
# ifndef HAVE_SETEGID
# define HAVE_SETEGID
# endif
# ifndef HAVE_SETEUID
# define HAVE_SETEUID
# endif
2010-03-29 20:53:16 +11:00
/* force the use of the libreplace strerror_r */
# ifndef HAVE_STRERROR_R
# define HAVE_STRERROR_R
# endif
# ifndef STRERROR_R_PROTO_COMPATIBLE
# define STRERROR_R_PROTO_COMPATIBLE
# endif
2010-03-29 22:47:34 +11:00
# ifndef HAVE_DIRFD
# ifdef HAVE_DIR_DD_FD
# define dirfd(x) ((x)->dd_fd)
# else
# define dirfd(d) (-1)
# endif
# define HAVE_DIRFD 1
# endif
2010-03-29 20:53:16 +11:00
2009-06-09 14:11:20 +10:00
/* we lie about having pidfile() so that NetBSD5 can compile. Nothing
in the parts of heimdal we use actually uses pidfile ( ) , and we
don ' t use it in Samba , so this works , although its ugly */
# ifndef HAVE_PIDFILE
# define HAVE_PIDFILE
# endif
2007-04-21 23:02:49 +00:00
# if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
# ifndef HAVE___ATTRIBUTE__
# define HAVE___ATTRIBUTE__
# endif
# endif
2007-10-24 13:50:30 +02:00
# include "system/network.h"
2007-04-17 07:45:54 +00:00
/*
* we don ' t want that roken . h . in includes socket_wrapper
* we include socket_wrapper via " system/network.h "
*/
# undef SOCKET_WRAPPER_REPLACE
2006-11-07 12:47:46 +00:00
# include "heimdal/lib/roken/roken.h.in"
2007-04-17 07:45:54 +00:00
2009-03-25 11:22:01 +01:00
extern const char * heimdal_version ;
extern const char * heimdal_long_version ;
2005-07-14 08:50:57 +00:00
# endif