/*1* Copyright (c) 1997 - 2006 Kungliga Tekniska Högskolan2* (Royal Institute of Technology, Stockholm, Sweden).3* All rights reserved.4*5* Redistribution and use in source and binary forms, with or without6* modification, are permitted provided that the following conditions7* are met:8*9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11*12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* 3. Neither the name of the Institute nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*/3233/*34* $Id$35*/3637#ifndef __HEADERS_H__38#define __HEADERS_H__3940#include <config.h>4142#include <limits.h>43#include <stdio.h>44#include <stdlib.h>45#include <string.h>46#include <errno.h>47#include <signal.h>48#include <stdarg.h>49#ifdef HAVE_SYS_TYPES_H50#include <sys/types.h>51#endif52#ifdef HAVE_FCNTL_H53#include <fcntl.h>54#endif55#ifdef HAVE_SYS_SELECT_H56#include <sys/select.h>57#endif58#ifdef HAVE_SYS_SOCKET_H59#include <sys/socket.h>60#endif61#ifdef HAVE_NETINET_IN_H62#include <netinet/in.h>63#endif64#ifdef HAVE_NETINET_IN6_H65#include <netinet/in6.h>66#endif67#ifdef HAVE_NETINET6_IN6_H68#include <netinet6/in6.h>69#endif70#ifdef HAVE_ARPA_INET_H71#include <arpa/inet.h>72#endif73#ifdef HAVE_SYS_WAIT_H74#include <sys/wait.h>75#endif76#ifdef HAVE_NETDB_H77#include <netdb.h>78#endif79#ifdef HAVE_UTIL_H80#include <util.h>81#endif82#ifdef HAVE_LIBUTIL_H83#include <libutil.h>84#endif85#include <err.h>86#include <roken.h>87#include <getarg.h>88#include <base64.h>89#include <parse_units.h>90#include <krb5.h>91#include <krb5_locl.h>92#ifdef DIGEST93#include <digest_asn1.h>94#endif95#ifdef KX50996#include <kx509_asn1.h>97#endif98#include <hdb.h>99#include <hdb_err.h>100#include <der.h>101102#ifndef NO_NTLM103#include <heimntlm.h>104#endif105#include <kdc.h>106#include <windc_plugin.h>107108#undef ALLOC109#define ALLOC(X) ((X) = calloc(1, sizeof(*(X))))110#undef ALLOC_SEQ111#define ALLOC_SEQ(X, N) do { (X)->len = (N); \112(X)->val = calloc((X)->len, sizeof(*(X)->val)); } while(0)113114#endif /* __HEADERS_H__ */115116117