/* saslauthd.h.  Generated automatically by configure.  */
/* saslauthd.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
#include <stdio.h>


/* Define to empty if the keyword does not work.  */
/* #undef const */

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

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

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

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

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

/* Symbols that need defining */
/* do we have gssapi.h or gssapi/gssapi.h? */
/* #undef HAVE_GSSAPI_H */

/* what flavor of GSSAPI are we using? */
/* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */

/* Do we have kerberos for plaintext password checking? */
/* #undef HAVE_KRB */

/* do we have SIA for plaintext password checking? */
/* #undef HAVE_SIA */

/* do we have ldap support */
/* #undef HAVE_LDAP */

/* do we want to enable the GSSAPI module */
#define AUTH_KRB5 1
/* #undef KRB5_HEIMDAL */

/* Do we want to enable the experimental sasldb authentication module? */
/* #undef AUTH_SASLDB */

/* Path to saslauthd rundir */
#define PATH_SASLAUTHD_RUNDIR "/var/state/saslauthd"

/* do we have pam? */
#define HAVE_PAM 1

/* Things SASLAUTHd doesn't really care about */
#define HAVE_SASLAUTHD 1
/* #undef WITH_DES */
/* #undef WITH_SSL_DES */
/* #undef STATIC_GSSAPIV2 */
/* #undef STATIC_KERBEROS4 */
#define STATIC_PLAIN 1
/* #undef SASL_BERKELEYDB */
/* #undef SASL_DB_PATH */
/* #undef SASL_GDBM */
/* #undef SASL_NDBM */
/* #undef STATIC_SASLDB */

/* define if your system has getnameinfo() */
#define HAVE_GETADDRINFO 1

 
/* define if your system has getnameinfo() */
#define HAVE_GETNAMEINFO 1

/* define if your system has struct sockaddr_storage */
#define HAVE_STRUCT_SOCKADDR_STORAGE 1

  
/* Define if you have ss_family in struct sockaddr_storage. */
#define HAVE_SS_FAMILY 1

/* do we have socklen_t? */
#define HAVE_SOCKLEN_T 1
/* #undef HAVE_SOCKADDR_SA_LEN */

/* Define if you have the dn_expand function.  */
#define HAVE_DN_EXPAND 1

/* Define if you have the dns_lookup function.  */
/* #undef HAVE_DNS_LOOKUP */

/* Define if you have the gethostname function.  */
#define HAVE_GETHOSTNAME 1

/* Define if you have the getspnam function.  */
#define HAVE_GETSPNAM 1

/* Define if you have the getuserpw function.  */
/* #undef HAVE_GETUSERPW */

/* Define if you have the gsskrb5_register_acceptor_identity function.  */
/* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */

/* Define if you have the krb_get_err_text function.  */
/* #undef HAVE_KRB_GET_ERR_TEXT */

/* Define if you have the mkdir function.  */
#define HAVE_MKDIR 1

/* Define if you have the socket function.  */
#define HAVE_SOCKET 1

/* Define if you have the strdup function.  */
#define HAVE_STRDUP 1

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

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

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

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

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

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

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

/* Define if you have the db library (-ldb).  */
/* #undef HAVE_LIBDB */

/* Define if you have the resolv library (-lresolv).  */
#define HAVE_LIBRESOLV 1

/* Name of package */
#define PACKAGE "saslauthd"

/* Version number of package */
#define VERSION "2.1.7"

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


#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 <winsock.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

#ifndef NI_WITHSCOPEID
#define NI_WITHSCOPEID  0
#endif

