#ifndef CONFIG_H
#define CONFIG_H
#include <string.h>
#define htons
#define htonl
#define ntohl
#define ntohs
#define strdup xxx_sasl_strdup
#define strcasecmp xxx_sasl_strcasecmp
#define gethostname xxx_sasl_gethostname
#define inet_aton xxx_sasl_inetaton
#define PACKAGE "cyrus-sasl"
#define VERSION "2.0.4"
#define SASL_MINIMAL_SERVER 1
#undef SASL_DB_TYPE
int strcasecmp(const char *s1,const char *s2);
int strncasecmp(const char *s1,const char *s2,int len);
int strcpy_truncate(char *dest,char *src,int len);
#define gethostname xxx_sasl_gethostname
int gethostname(char *dest,int destlen);
#define SASL_PATH_ENV_VAR "foo"
#define PLUGINDIR "make_me_a_function_to_get_that_info"
typedef unsigned char u_char;
typedef unsigned long u_long;
char *strdup(const char *str);
struct sockaddr_in {
u_char sin_len;
u_char sin_family;
unsigned short sin_port;
union {
unsigned long s_addr;
} sin_addr;
char sin_zero[8];
};
struct in_addr {
unsigned long s_addr;
};
#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
#endif
#include "gai.h"
#ifndef NULL
#define NULL (0L)
#endif
#ifdef RUBBISH
int snprintf (char *str,size_t count,const char *fmt,...);
int snprintf (char *str,int count,const char *fmt,...);
#endif
extern char *optarg;
extern int optind;
extern int getopt(
int nargc,
char * const *nargv,
const char *ostr);
extern int getsubopt(char **optionp, const char * const *tokens, char **valuep);
extern char* getpass(const char *prompt);
#define HAVE_MEMCPY 1
#define MAXHOSTNAMELEN 1024
#define WITHOUT_NANA
#define L_DEFAULT_GUARD (0)
#define I_DEFAULT_GUARD (0)
#define I(foo)
#ifdef RUBBISH
#endif
#include <stdio.h>
#define XXVL(foo) printf foo;
#define VL(foo)
#define VLP(foo,bar)
#define __attribute__(foo)
#include <netinet/in.h>
#define getservbyname(X,Y) NULL
struct servent {
int s_port;
};
struct sockaddr {
u_char sa_len;
u_char sa_family;
char sa_data[14];
};
#define SOCK_MAXADDRLEN 255
#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
#endif
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
#define _SS_MAXSIZE 128
#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
#define get_krb_err_txt(X) (krb_err_txt[(X)])
#define AF_UNSPEC 0
#define AF_UNIX 1
#define AF_INET 2
#define AF_IMPLINK 3
#define AF_PUP 4
#define AF_CHAOS 5
#define AF_NS 6
#define AF_NBS 7
#define AF_ECMA 8
#define AF_DATAKIT 9
#define AF_CCITT 10
#define AF_SNA 11
#define AF_DECnet 12
#define AF_DLI 13
#define AF_LAT 14
#define AF_HYLINK 15
#define AF_APPLETALK 16
#define AF_NIT 17
#define AF_802 18
#define AF_OSI 19
#define AF_X25 20
#define AF_OSINET 21
#define AF_GOSIP 22
#define AF_IPX 23
#define AF_ROUTE 24
#define AF_LINK 25
#define AF_INET6 26
#define AF_KEY 27
#define AF_MAX 27
#define PF_UNSPEC AF_UNSPEC
#define PF_UNIX AF_UNIX
#define PF_INET AF_INET
#define PF_IMPLINK AF_IMPLINK
#define PF_PUP AF_PUP
#define PF_CHAOS AF_CHAOS
#define PF_NS AF_NS
#define PF_NBS AF_NBS
#define PF_ECMA AF_ECMA
#define PF_DATAKIT AF_DATAKIT
#define PF_CCITT AF_CCITT
#define PF_SNA AF_SNA
#define PF_DECnet AF_DECnet
#define PF_DLI AF_DLI
#define PF_LAT AF_LAT
#define PF_HYLINK AF_HYLINK
#define PF_APPLETALK AF_APPLETALK
#define PF_NIT AF_NIT
#define PF_802 AF_802
#define PF_OSI AF_OSI
#define PF_X25 AF_X25
#define PF_OSINET AF_OSINET
#define PF_GOSIP AF_GOSIP
#define PF_IPX AF_IPX
#define PF_ROUTE AF_ROUTE
#define PF_LINK AF_LINK
#define PF_INET6 AF_INET6
#define PF_KEY AF_KEY
#define PF_MAX AF_MAX
#define SOCK_STREAM 1
#define SOCK_DGRAM 2
struct iovec {
char *iov_base;
long iov_len;
};
#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
#endif