and mit_des_is_weak_key here as no other "public" header file
defines it. Needed for return_sam_data() code.
* configure.in: Test for unistd.h and existance of swab() prototype.
* kerberos_v4.c: If swab() prototype needed, provide.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13446
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-21 Ezra Peisach <epeisach@mit.edu>
+
+ * kdc_preauth.c: Include prototypes for mit_des_fixup_key_parity
+ and mit_des_is_weak_key here as no other "public" header file
+ defines it. Needed for return_sam_data() code.
+
+ * configure.in: Test for unistd.h and existance of swab() prototype.
+
+ * kerberos_v4.c: If swab() prototype needed, provide.
+
2001-06-19 Tom Yu <tlyu@mit.edu>
* kdc_util.c (ktypes2str): New function; construct a string
AC_INIT(main.c)
CONFIG_RULES
AC_PROG_INSTALL
-AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h)
-AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
+AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h unistd.h)
+AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf swab)
+KRB5_NEED_PROTO([#include <string.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+],swab)
AC_PROG_AWK
KRB5_AC_INET6
KRB5_SOCKADDR_SA_LEN
#include "adm_proto.h"
#include <syslog.h>
+/* XXX This is ugly and should be in a header file somewhere */
+#ifndef KRB5INT_DES_TYPES_DEFINED
+#define KRB5INT_DES_TYPES_DEFINED
+typedef unsigned char des_cblock[8]; /* crypto-block size */
+#endif
+typedef des_cblock mit_des_cblock;
+extern void mit_des_fixup_key_parity (mit_des_cblock );
+extern int mit_des_is_weak_key (mit_des_cblock );
+
typedef krb5_error_code (*verify_proc)
(krb5_context, krb5_db_entry *client,
krb5_kdc_req *request,
#include <krb_db.h>
#include <kdc.h>
+#ifdef NEED_SWAB_PROTO
+extern void swab(const void *, void *, size_t );
+#endif
+
extern int errno;
static int compat_decrypt_key (krb5_key_data *, C_Block,