2 a wrapper to override some of the defines that the heimdal roken system looks at
9 /* 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 */
10 #define HEIM_WEAK_CRYPTO 1
12 /* path to sysconf - should we force this to samba LIBDIR ? */
13 #define SYSCONFDIR "/etc"
15 #define rk_PATH_DELIM '/'
17 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
19 /* Maximum values on all known systems */
20 #define MaxHostNameLen (64+4)
21 #define MaxPathLen (1024+4)
26 #define ROKEN_LIB_FUNCTION
27 #define ROKEN_LIB_CALL
28 #define ROKEN_LIB_VARIABLE
29 #define GETHOSTBYADDR_PROTO_COMPATIBLE
30 #define GETSERVBYNAME_PROTO_COMPATIBLE
31 #define OPENLOG_PROTO_COMPATIBLE
32 #define GETSOCKNAME_PROTO_COMPATIBLE
34 /* even if we do have dlopen, we don't want heimdal using it */
37 /* we need to tell roken about the functions that Samba replaces in lib/replace */
39 #define HAVE_SETEUID 1
58 #ifndef HAVE_STRCASECMP
59 #define HAVE_STRCASECMP
66 #ifndef HAVE_VASPRINTF
67 #define HAVE_VASPRINTF
102 #ifndef HAVE_INET_ATON
103 #define HAVE_INET_ATON
106 #ifndef HAVE_INET_NTOP
107 #define HAVE_INET_NTOP
110 #ifndef HAVE_INET_PTON
111 #define HAVE_INET_PTON
114 #ifndef HAVE_GETTIMEOFDAY
115 #define HAVE_GETTIMEOFDAY
126 /* force the use of the libreplace strerror_r */
127 #ifndef HAVE_STRERROR_R
128 #define HAVE_STRERROR_R
130 #ifndef STRERROR_R_PROTO_COMPATIBLE
131 #define STRERROR_R_PROTO_COMPATIBLE
135 #ifdef HAVE_DIR_DD_FD
136 #define dirfd(x) ((x)->dd_fd)
138 #define dirfd(d) (-1)
144 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
145 in the parts of heimdal we use actually uses pidfile(), and we
146 don't use it in Samba, so this works, although its ugly */
151 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
152 #ifndef HAVE___ATTRIBUTE__
153 #define HAVE___ATTRIBUTE__
157 #include "system/network.h"
160 * we don't want that roken.h.in includes socket_wrapper
161 * we include socket_wrapper via "system/network.h"
163 #undef SOCKET_WRAPPER_REPLACE
164 #include "heimdal/lib/roken/roken.h.in"
166 extern const char *heimdal_version
;
167 extern const char *heimdal_long_version
;
169 /* we do not want any __APPLE__ magic */