2 a wrapper to override some of the defines that the heimdal roken system looks at
7 /* 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 */
8 #define HEIM_WEAK_CRYPTO 1
10 /* path to sysconf - should we force this to samba LIBDIR ? */
11 #define SYSCONFDIR "/etc"
13 #define rk_PATH_DELIM '/'
15 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
17 /* Maximum values on all known systems */
18 #define MaxHostNameLen (64+4)
19 #define MaxPathLen (1024+4)
24 #define ROKEN_LIB_FUNCTION
25 #define ROKEN_LIB_CALL
26 #define GETHOSTBYADDR_PROTO_COMPATIBLE
27 #define GETSERVBYNAME_PROTO_COMPATIBLE
28 #define OPENLOG_PROTO_COMPATIBLE
29 #define GETSOCKNAME_PROTO_COMPATIBLE
31 /* even if we do have dlopen, we don't want heimdal using it */
34 /* we need to tell roken about the functions that Samba replaces in lib/replace */
36 #define HAVE_SETEUID 1
55 #ifndef HAVE_STRCASECMP
56 #define HAVE_STRCASECMP
63 #ifndef HAVE_VASPRINTF
64 #define HAVE_VASPRINTF
99 #ifndef HAVE_INET_ATON
100 #define HAVE_INET_ATON
103 #ifndef HAVE_INET_NTOP
104 #define HAVE_INET_NTOP
107 #ifndef HAVE_INET_PTON
108 #define HAVE_INET_PTON
111 #ifndef HAVE_GETTIMEOFDAY
112 #define HAVE_GETTIMEOFDAY
123 /* force the use of the libreplace strerror_r */
124 #ifndef HAVE_STRERROR_R
125 #define HAVE_STRERROR_R
127 #ifndef STRERROR_R_PROTO_COMPATIBLE
128 #define STRERROR_R_PROTO_COMPATIBLE
132 #ifdef HAVE_DIR_DD_FD
133 #define dirfd(x) ((x)->dd_fd)
135 #define dirfd(d) (-1)
141 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
142 in the parts of heimdal we use actually uses pidfile(), and we
143 don't use it in Samba, so this works, although its ugly */
148 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
149 #ifndef HAVE___ATTRIBUTE__
150 #define HAVE___ATTRIBUTE__
154 #include "system/network.h"
157 * we don't want that roken.h.in includes socket_wrapper
158 * we include socket_wrapper via "system/network.h"
160 #undef SOCKET_WRAPPER_REPLACE
161 #include "heimdal/lib/roken/roken.h.in"
163 extern const char *heimdal_version
;
164 extern const char *heimdal_long_version
;
166 /* we do not want any __APPLE__ magic */