saslauthd.h.in   [plain text]


/* saslauthd.h.in.  Generated from configure.in by autoheader.  */


#ifndef _SASLAUTHD_H
#define _SASLAUTHD_H

#include <stdio.h>


/* Include SASLdb Support */
#undef AUTH_SASLDB

/* Define to 1 if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H

/* Define to 1 if you have the `dns_lookup' function. */
#undef HAVE_DNS_LOOKUP

/* Define to 1 if you have the `dn_expand' function. */
#undef HAVE_DN_EXPAND

/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H

/* Does the compiler understand __func__ */
#undef HAVE_FUNC

/* Does compiler understand __FUNCTION__ */
#undef HAVE_FUNCTION

/* Do we have a getaddrinfo? */
#undef HAVE_GETADDRINFO

/* Define to 1 if you have the `gethostname' function. */
#undef HAVE_GETHOSTNAME

/* Do we have a getnameinfo() function? */
#undef HAVE_GETNAMEINFO

/* Define to 1 if you have the `getspnam' function. */
#undef HAVE_GETSPNAM

/* Define to 1 if you have the `getuserpw' function. */
#undef HAVE_GETUSERPW

/* Include GSSAPI/Kerberos 5 Support */
#undef HAVE_GSSAPI

/* Define if you have the gssapi.h header file */
#undef HAVE_GSSAPI_H

/* Define to 1 if you have the `gsskrb5_register_acceptor_identity' function.
   */
#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY

/* Define if your GSSAPI implimentation defines GSS_C_NT_HOSTBASED_SERVICE */
#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE

/* Define if your GSSAPI implimentation defines GSS_C_NT_USER_NAME */
#undef HAVE_GSS_C_NT_USER_NAME

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Do we have Kerberos 4 Support? */
#undef HAVE_KRB

/* Define to 1 if you have the <krb5.h> header file. */
#undef HAVE_KRB5_H

/* Define to 1 if you have the `krb_get_err_text' function. */
#undef HAVE_KRB_GET_ERR_TEXT

/* Support for LDAP? */
#undef HAVE_LDAP

/* Define to 1 if you have the `resolv' library (-lresolv). */
#undef HAVE_LIBRESOLV

/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H

/* Define to 1 if you have the `mkdir' function. */
#undef HAVE_MKDIR

/* Do we have OpenSSL? */
#undef HAVE_OPENSSL

/* Support for PAM? */
#undef HAVE_PAM

/* Does compiler understand __PRETTY_FUNCTION__ */
#undef HAVE_PRETTY_FUNCTION

/* Include support for saslauthd? */
#undef HAVE_SASLAUTHD

/* Include SIA Support */
#undef HAVE_SIA

/* Does sockaddr have an sa_len? */
#undef HAVE_SOCKADDR_SA_LEN

/* Define to 1 if you have the `socket' function. */
#undef HAVE_SOCKET

/* Do we have a socklen_t? */
#undef HAVE_SOCKLEN_T

/* Is there an ss_family in sockaddr_storage? */
#undef HAVE_SS_FAMILY

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H

/* Define to 1 if you have the `strdup' function. */
#undef HAVE_STRDUP

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H

/* Define to 1 if you have the `strlcat' function. */
#undef HAVE_STRLCAT

/* Define to 1 if you have the `strlcpy' function. */
#undef HAVE_STRLCPY

/* Do we have a sockaddr_storage struct? */
#undef HAVE_STRUCT_SOCKADDR_STORAGE

/* Define to 1 if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H

/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H

/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if you have the <sys/uio.h> header file. */
#undef HAVE_SYS_UIO_H

/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* define if your compiler has __attribute__ */
#undef HAVE___ATTRIBUTE__

/* Using Heimdal */
#undef KRB5_HEIMDAL

/* Name of package */
#undef PACKAGE

/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT

/* Define to the full name of this package. */
#undef PACKAGE_NAME

/* Define to the full name and version of this package. */
#undef PACKAGE_STRING

/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME

/* Define to the version of this package. */
#undef PACKAGE_VERSION

/* Location of saslauthd socket */
#undef PATH_SASLAUTHD_RUNDIR

/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE

/* Saslauthd runs threaded? */
#undef SASLAUTHD_THREADED

/* Use BerkeleyDB for SASLdb */
#undef SASL_BERKELEYDB

/* Path to default SASLdb database */
#undef SASL_DB_PATH

/* Use GDBM for SASLdb */
#undef SASL_GDBM

/* Use NDBM for SASLdb */
#undef SASL_NDBM

/* User KERBEROS_V4 Staticly */
#undef STATIC_KERBEROS4

/* Link SASLdb Staticly */
#undef STATIC_SASLDB

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME

/* Use the doors IPC API */
#undef USE_DOORS

/* Version number of package */
#undef VERSION

/* Use DES */
#undef WITH_DES

/* Use OpenSSL DES Implementation */
#undef WITH_SSL_DES

/* Define to empty if `const' does not conform to ANSI C. */
#undef const

/* Define to `int' if <sys/types.h> does not define. */
#undef pid_t



#ifndef HAVE___ATTRIBUTE__
/* Can't use attributes... */
#define __attribute__(foo)
#endif

#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifndef WIN32
# include <netdb.h>   
# include <sys/param.h>
#else /* WIN32 */
# include <winsock2.h>
#endif /* WIN32 */ 
#include <string.h>

#include <netinet/in.h>

#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
#endif /* HAVE_SOCKLEN_T */

#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
#define _SS_MAXSIZE     128     /* Implementation specific max size */
#define _SS_PADSIZE     (_SS_MAXSIZE - sizeof (struct sockaddr))

struct sockaddr_storage {
        struct  sockaddr ss_sa;
        char            __ss_pad2[_SS_PADSIZE];
};
# define ss_family ss_sa.sa_family
#endif /* !HAVE_STRUCT_SOCKADDR_STORAGE */

#ifndef AF_INET6
/* Define it to something that should never appear */
#define AF_INET6        AF_MAX
#endif

/* Create a struct iovec if we need one */
#if !defined(HAVE_SYS_UIO_H)
struct iovec {
    long iov_len;
    char *iov_base;
};
#else
#include <sys/types.h>
#include <sys/uio.h>
#endif

#ifndef HAVE_GETADDRINFO
#define getaddrinfo     sasl_getaddrinfo
#define freeaddrinfo    sasl_freeaddrinfo
#define getnameinfo     sasl_getnameinfo
#define gai_strerror    sasl_gai_strerror
#include "gai.h"
#endif

/* handy string manipulation functions */
#ifndef HAVE_STRLCPY
extern size_t saslauthd_strlcpy(char *dst, const char *src, size_t len);
#define strlcpy(x,y,z) saslauthd_strlcpy((x),(y),(z))
#endif
#ifndef HAVE_STRLCAT
extern size_t saslauthd_strlcat(char *dst, const char *src, size_t len);
#define strlcat(x,y,z) saslauthd_strlcat((x),(y),(z))
#endif

#endif