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