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