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