1/* saslauthd.h.in.  Generated from configure.in by autoheader.  */
2
3
4#ifndef _SASLAUTHD_H
5#define _SASLAUTHD_H
6
7#include <stdio.h>
8
9
10/* Include SASLdb Support */
11#undef AUTH_SASLDB
12
13/* Define if your getpwnam_r()/getspnam_r() functions take 5 arguments */
14#undef GETXXNAM_R_5ARG
15
16/* Define to 1 if you have the `asprintf' function. */
17#undef HAVE_ASPRINTF
18
19/* Define to 1 if you have the <crypt.h> header file. */
20#undef HAVE_CRYPT_H
21
22/* Define to 1 if you have the `dns_lookup' function. */
23#undef HAVE_DNS_LOOKUP
24
25/* Define to 1 if you have the `dn_expand' function. */
26#undef HAVE_DN_EXPAND
27
28/* Define to 1 if you have the <fcntl.h> header file. */
29#undef HAVE_FCNTL_H
30
31/* Does the compiler understand __func__ */
32#undef HAVE_FUNC
33
34/* Does compiler understand __FUNCTION__ */
35#undef HAVE_FUNCTION
36
37/* Do we have a getaddrinfo? */
38#undef HAVE_GETADDRINFO
39
40/* Define to 1 if you have the `gethostname' function. */
41#undef HAVE_GETHOSTNAME
42
43/* Do we have a getnameinfo() function? */
44#undef HAVE_GETNAMEINFO
45
46/* Define to 1 if you have the `getspnam' function. */
47#undef HAVE_GETSPNAM
48
49/* Define to 1 if you have the `getuserpw' function. */
50#undef HAVE_GETUSERPW
51
52/* Include GSSAPI/Kerberos 5 Support */
53#undef HAVE_GSSAPI
54
55/* Define to 1 if you have the <gssapi/gssapi_ext.h> header file. */
56#undef HAVE_GSSAPI_GSSAPI_EXT_H
57
58/* Define if you have the gssapi.h header file */
59#undef HAVE_GSSAPI_H
60
61/* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function.
62   */
63#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
64
65/* Define if your GSSAPI implementation defines GSS_C_NT_HOSTBASED_SERVICE */
66#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
67
68/* Define if your GSSAPI implementation defines GSS_C_NT_USER_NAME */
69#undef HAVE_GSS_C_NT_USER_NAME
70
71/* Define to 1 if you have the `gss_decapsulate_token' function. */
72#undef HAVE_GSS_DECAPSULATE_TOKEN
73
74/* Define to 1 if you have the `gss_encapsulate_token' function. */
75#undef HAVE_GSS_ENCAPSULATE_TOKEN
76
77/* Define to 1 if you have the `gss_get_name_attribute' function. */
78#undef HAVE_GSS_GET_NAME_ATTRIBUTE
79
80/* Define to 1 if you have the `gss_oid_equal' function. */
81#undef HAVE_GSS_OID_EQUAL
82
83/* Define if your GSSAPI implementation supports SPNEGO */
84#undef HAVE_GSS_SPNEGO
85
86/* Include HTTP form Support */
87#undef HAVE_HTTPFORM
88
89/* Define to 1 if you have the <inttypes.h> header file. */
90#undef HAVE_INTTYPES_H
91
92/* Do we have Kerberos 4 Support? */
93#undef HAVE_KRB
94
95/* Define to 1 if you have the <krb5.h> header file. */
96#undef HAVE_KRB5_H
97
98/* Define to 1 if you have the `krb_get_err_text' function. */
99#undef HAVE_KRB_GET_ERR_TEXT
100
101/* Support for LDAP? */
102#undef HAVE_LDAP
103
104/* Define to 1 if you have the `resolv' library (-lresolv). */
105#undef HAVE_LIBRESOLV
106
107/* Define to 1 if you have the <memory.h> header file. */
108#undef HAVE_MEMORY_H
109
110/* Define to 1 if you have the `mkdir' function. */
111#undef HAVE_MKDIR
112
113/* Do we have OpenSSL? */
114#undef HAVE_OPENSSL
115
116/* Support for PAM? */
117#undef HAVE_PAM
118
119/* Does compiler understand __PRETTY_FUNCTION__ */
120#undef HAVE_PRETTY_FUNCTION
121
122/* Include support for saslauthd? */
123#undef HAVE_SASLAUTHD
124
125/* Include SIA Support */
126#undef HAVE_SIA
127
128/* Does sockaddr have an sa_len? */
129#undef HAVE_SOCKADDR_SA_LEN
130
131/* Define to 1 if you have the `socket' function. */
132#undef HAVE_SOCKET
133
134/* Do we have a socklen_t? */
135#undef HAVE_SOCKLEN_T
136
137/* Is there an ss_family in sockaddr_storage? */
138#undef HAVE_SS_FAMILY
139
140/* Define to 1 if you have the <stdint.h> header file. */
141#undef HAVE_STDINT_H
142
143/* Define to 1 if you have the <stdlib.h> header file. */
144#undef HAVE_STDLIB_H
145
146/* Define to 1 if you have the `strdup' function. */
147#undef HAVE_STRDUP
148
149/* Define to 1 if you have the <strings.h> header file. */
150#undef HAVE_STRINGS_H
151
152/* Define to 1 if you have the <string.h> header file. */
153#undef HAVE_STRING_H
154
155/* Define to 1 if you have the `strlcat' function. */
156#undef HAVE_STRLCAT
157
158/* Define to 1 if you have the `strlcpy' function. */
159#undef HAVE_STRLCPY
160
161/* Do we have a sockaddr_storage struct? */
162#undef HAVE_STRUCT_SOCKADDR_STORAGE
163
164/* Define to 1 if you have the <syslog.h> header file. */
165#undef HAVE_SYSLOG_H
166
167/* Define to 1 if you have the <sys/stat.h> header file. */
168#undef HAVE_SYS_STAT_H
169
170/* Define to 1 if you have the <sys/time.h> header file. */
171#undef HAVE_SYS_TIME_H
172
173/* Define to 1 if you have the <sys/types.h> header file. */
174#undef HAVE_SYS_TYPES_H
175
176/* Define to 1 if you have the <sys/uio.h> header file. */
177#undef HAVE_SYS_UIO_H
178
179/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
180#undef HAVE_SYS_WAIT_H
181
182/* Define to 1 if you have the <unistd.h> header file. */
183#undef HAVE_UNISTD_H
184
185/* define if your compiler has __attribute__ */
186#undef HAVE___ATTRIBUTE__
187
188/* Using Heimdal */
189#undef KRB5_HEIMDAL
190
191/* Name of package */
192#undef PACKAGE
193
194/* Define to the address where bug reports for this package should be sent. */
195#undef PACKAGE_BUGREPORT
196
197/* Define to the full name of this package. */
198#undef PACKAGE_NAME
199
200/* Define to the full name and version of this package. */
201#undef PACKAGE_STRING
202
203/* Define to the one symbol short name of this package. */
204#undef PACKAGE_TARNAME
205
206/* Define to the version of this package. */
207#undef PACKAGE_VERSION
208
209/* Location of saslauthd socket */
210#undef PATH_SASLAUTHD_RUNDIR
211
212/* Define as the return type of signal handlers (`int' or `void'). */
213#undef RETSIGTYPE
214
215/* Saslauthd runs threaded? */
216#undef SASLAUTHD_THREADED
217
218/* Use BerkeleyDB for SASLdb */
219#undef SASL_BERKELEYDB
220
221/* Path to default SASLdb database */
222#undef SASL_DB_PATH
223
224/* Use GDBM for SASLdb */
225#undef SASL_GDBM
226
227/* Use NDBM for SASLdb */
228#undef SASL_NDBM
229
230/* The size of `long', as computed by sizeof. */
231#undef SIZEOF_LONG
232
233/* User KERBEROS_V4 Staticly */
234#undef STATIC_KERBEROS4
235
236/* Link SASLdb Staticly */
237#undef STATIC_SASLDB
238
239/* Define to 1 if you have the ANSI C header files. */
240#undef STDC_HEADERS
241
242/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
243#undef TIME_WITH_SYS_TIME
244
245/* Use the doors IPC API */
246#undef USE_DOORS
247
248/* Version number of package */
249#undef VERSION
250
251/* Use DES */
252#undef WITH_DES
253
254/* Use OpenSSL DES Implementation */
255#undef WITH_SSL_DES
256
257/* Define to empty if `const' does not conform to ANSI C. */
258#undef const
259
260/* Define to `int' if <sys/types.h> does not define. */
261#undef pid_t
262
263
264
265#ifndef HAVE___ATTRIBUTE__
266/* Can't use attributes... */
267#define __attribute__(foo)
268#endif
269
270#include <stdlib.h>
271#include <sys/types.h>
272#include <sys/socket.h>
273#ifndef WIN32
274# include <netdb.h>
275# include <sys/param.h>
276#else /* WIN32 */
277# include <winsock2.h>
278#endif /* WIN32 */
279#include <string.h>
280
281#include <netinet/in.h>
282
283#ifndef HAVE_SOCKLEN_T
284typedef unsigned int socklen_t;
285#endif /* HAVE_SOCKLEN_T */
286
287#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
288#define _SS_MAXSIZE     128     /* Implementation specific max size */
289#define _SS_PADSIZE     (_SS_MAXSIZE - sizeof (struct sockaddr))
290
291struct sockaddr_storage {
292        struct  sockaddr ss_sa;
293        char            __ss_pad2[_SS_PADSIZE];
294};
295# define ss_family ss_sa.sa_family
296#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */
297
298#ifndef AF_INET6
299/* Define it to something that should never appear */
300#define AF_INET6        AF_MAX
301#endif
302
303/* Create a struct iovec if we need one */
304#if !defined(HAVE_SYS_UIO_H)
305struct iovec {
306    long iov_len;
307    char *iov_base;
308};
309#else
310#include <sys/types.h>
311#include <sys/uio.h>
312#endif
313
314#ifndef HAVE_GETADDRINFO
315#define getaddrinfo     sasl_getaddrinfo
316#define freeaddrinfo    sasl_freeaddrinfo
317#define getnameinfo     sasl_getnameinfo
318#define gai_strerror    sasl_gai_strerror
319#include "gai.h"
320#endif
321
322#ifndef AI_NUMERICHOST   /* support glibc 2.0.x */
323#define	AI_NUMERICHOST	4
324#define NI_NUMERICHOST	2
325#define NI_NAMEREQD	4
326#define NI_NUMERICSERV	8
327#endif
328
329/* handy string manipulation functions */
330#ifndef HAVE_STRLCPY
331extern size_t saslauthd_strlcpy(char *dst, const char *src, size_t len);
332#define strlcpy(x,y,z) saslauthd_strlcpy((x),(y),(z))
333#endif
334#ifndef HAVE_STRLCAT
335extern size_t saslauthd_strlcat(char *dst, const char *src, size_t len);
336#define strlcat(x,y,z) saslauthd_strlcat((x),(y),(z))
337#endif
338#ifndef HAVE_ASPRINTF
339extern int asprintf(char **str, const char *fmt, ...);
340#endif
341
342#endif
343
344