Protect headers in Kerberos code.

This commit is contained in:
Mats Erik Andersson
2012-02-01 01:36:44 +01:00
parent 4e82f22597
commit e18406105c
13 changed files with 151 additions and 39 deletions

View File

@@ -57,11 +57,21 @@
# include <pwd.h>
# include <netdb.h>
# include <krb5/krb5.h>
# include <krb5/asn1.h>
# include <krb5/crc-32.h>
# include <krb5/los-proto.h>
# include <krb5/ext-proto.h>
# ifdef HAVE_KRB5_KRB5_H
# include <krb5/krb5.h>
# endif
# ifdef HAVE_KRB5_ASN1_H
# include <krb5/asn1.h>
# endif
# ifdef HAVE_KRB5_CRC_32_H
# include <krb5/crc-32.h>
# endif
# ifdef HAVE_KRB5_LOS_PROTO_H
# include <krb5/los-proto.h>
# endif
# ifdef HAVE_KRB5_EXT_PROTO_H
# include <krb5/ext-proto.h>
# endif
# define KRB5_DEFAULT_LIFE 60*60*8 /* 8 hours */
/* helper function: convert flags to necessary KDC options */

View File

@@ -73,8 +73,12 @@
# include <sys/types.h>
# include <arpa/telnet.h>
# include <stdio.h>
# include <des.h> /* BSD wont include this in krb.h, so we do it here */
# include <krb.h>
# ifdef HAVE_DES_H
# include <des.h> /* BSD wont include this in krb.h, so we do it here */
# endif
# ifdef HAVE_KRB_H
# include <krb.h>
# endif
# include <stdlib.h>
# include <string.h>

View File

@@ -24,10 +24,14 @@
# include <stdlib.h>
# include <stdio.h>
# include <arpa/telnet.h>
# include <krb5.h>
# ifdef HAVE_KRB5_H
# include <krb5.h>
# endif
# include <assert.h>
# include <com_err.h>
# ifdef HAVE_COM_ERR_H
# include <com_err.h>
# endif
# include <netdb.h>
# include <ctype.h>
# include <syslog.h>