mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
Protect headers in Kerberos code.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user