code doesn't get dragged in twice.
krlogind.c: Include <sys/time.h> so that Linux can get the FD_SET macros.
kcmd.c (kcmd): Close the credentials cache when you're done with it.
krlogind.c (doit): Always initialize the Krb5 error table.
krlogind.c (main, doit): Minor type fixes to gethostbyname(), accept().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5151
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Mar 14 16:08:08 1995 <tytso@rsx-11.mit.edu>
+
+ * Makefile.in, configure.in: Use the libdes425 library so that the
+ DES code doesn't get dragged in twice.
+
+ * krlogind.c: Include <sys/time.h> so that Linux can get the
+ FD_SET macros.
+
+ * kcmd.c (kcmd): Close the credentials cache when you're done with
+ it.
+
+ * krlogind.c (doit): Always initialize the Krb5 error table.
+
+ * krlogind.c (main, doit): Minor type fixes to gethostbyname(),
+ accept().
+
Fri Mar 10 18:32:22 1995 Theodore Y. Ts'o <tytso@dcl>
* kcmd.c (kcmd): Initialize ret_cred to zero so that in case of an
$(INSTALL_DATA) $(srcdir)/rlogin.M ${DESTDIR}$(CLIENT_MANDIR)/rlogin.1
krshd: krshd.o kcmd.o logutil.o forward.o $(SETENVOBJ) $(LIBOBJS) $(DEPKLIB)
- $(CC) $(CFLAGS) -o krshd krshd.o kcmd.o logutil.o forward.o $(SETENVOBJ) $(LIBOBJS) $(KLIB) $(K4LIB) $(LIBS)
+ $(CC) $(CFLAGS) -o krshd krshd.o kcmd.o logutil.o forward.o $(SETENVOBJ) $(LIBOBJS) $(K4LIB) $(KLIB) $(LIBS)
install::
$(INSTALL_PROGRAM) krshd $(DESTDIR)$(SERVER_BINDIR)/krshd
$(INSTALL_DATA) $(srcdir)/krshd.M ${DESTDIR}$(SERVER_MANDIR)/krshd.8
krlogind: krlogind.o logutil.o kcmd.o forward.o $(SETENVOBJ) $(LIBOBJS) $(DEPKLIB)
- $(CC) $(CFLAGS) -o krlogind krlogind.o logutil.o kcmd.o forward.o $(SETENVOBJ) $(LIBOBJS) $(KLIB) $(K4LIB) $(LIBS)
+ $(CC) $(CFLAGS) -o krlogind krlogind.o logutil.o kcmd.o forward.o $(SETENVOBJ) $(LIBOBJS) $(K4LIB) $(KLIB) $(LIBS)
install::
$(INSTALL_PROGRAM) krlogind $(DESTDIR)$(SERVER_BINDIR)/krlogind
dnl
AC_ARG_WITH([krb4],[include Kerberos V4 support],
ADD_DEF(-DKRB5_KRB4_COMPAT)
-K4LIB='$(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes.a',
+K4LIB='$(KRB4)/lib/libkrb.a $(KRB4)/lib/libdes425.a',
echo "warning: no krb4 backwards compatibility support"
K4LIB=)
AC_SUBST(K4LIB)
/* Get ticket from credentials cache or kdc */
status = krb5_get_credentials(bsd_context, 0, cc, get_cred, &ret_cred);
+ (void) krb5_cc_close(bsd_context, cc);
krb5_free_creds(bsd_context, get_cred);
if (status) goto bad2;
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sys/file.h>
+#include <sys/time.h>
#include <ctype.h>
#include <fcntl.h>
#include <netinet/in.h>
exit(2);
}
- if ((fd = accept(s, &from, &fromlen)) < 0) {
+ if ((fd = accept(s, (struct sockaddr *) &from, &fromlen)) < 0) {
fprintf(stderr, "Error in accept: %s\n", strerror(errno));
exit(2);
}
#endif
fromp->sin_port = ntohs((u_short)fromp->sin_port);
- hp = gethostbyaddr(&fromp->sin_addr, sizeof (struct in_addr),
+ hp = gethostbyaddr((char *) &fromp->sin_addr, sizeof (struct in_addr),
fromp->sin_family);
if (hp == 0) {
/*
fatal(f, "Permission denied - Malformed from address\n");
#ifdef KERBEROS
+ krb5_init_context(&bsd_context);
+ krb5_init_ets(bsd_context);
if (must_pass_k5 || must_pass_one) {
- /* Init error messages and setup des buffers */
- krb5_init_context(&bsd_context);
- krb5_init_ets(bsd_context);
+ /* setup des buffers */
desinbuf.data = des_inbuf;
desoutbuf.data = des_outbuf; /* Set up des buffers */
}