causing problems for shared libraries. Library code shouldn't try to
reference global variables defined by the calling application!
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5905
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri May 26 21:11:38 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * cr_err_repl.c (cr_err_reply): Remove backward compatibility code
+ for Kerberos V3 (!) which was causing problems for shared
+ libraries. Library code shouldn't try to reference global
+ variables defined by the calling application!
+
Sun May 21 16:06:20 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* dest_tkt.c: If O_SYNC is not defined, define as 0.
EHDRDIR=$(BUILDTOP)$(S)include
+.c.o:
+ $(CC) $(CFLAGS) -c $(srcdir)/$*.c
+@SHARED_RULE@
+
OBJS = \
cr_auth_repl.$(OBJEXT) \
cr_ciph.$(OBJEXT) \
$(LIB_KRB_HOSTSRCS) $(SERVER_KRB_SRCS) $(NETIO_OBJS) $(REALMDBSRCS)
+LIB_SUBDIRS= .
+LIBDONE= ./DONE
+
#
# These objects implement ticket cacheing for Unix. They are
# replaced by other files when compiling for Windows or Mac.
# We want *library* compiler options...
DBG=$(DBG_LIB)
-all-unix:: $(LIBNAME) krb_err.h includes
+all-unix:: shared $(LIBNAME) krb_err.h includes
+
+shared:
+ mkdir shared
# comp_et_depend(krb_err)
krb_err.h:: krb_err.et
krb_err.c: krb_err.et
+krb_err.o: krb_err.c
+ $(CC) $(CFLAGS) -c krb_err.c
+@SHARED_RULE_LOCAL@
+
depend:: krb_err.h
#
-$(RM) krb_err.c
-$(RM) krb_err.h
-$(RM) ../../include/krb_err.h
+ -$(RM) shared/*
clean-windows::
-$(RM) kerberos.lib
AC_FUNC_CHECK(setreuid,AC_DEFINE(HAVE_SETREUID))
AC_FUNC_CHECK(setresuid,AC_DEFINE(HAVE_SETRESUID))
ET_RULES
+V5_SHARED_LIB_OBJS
SubdirLibraryRule([$(OBJS)])
+V5_MAKE_SHARED_LIB(libkrb4)
KRB_INCLUDE
V5_AC_OUTPUT_MAKEFILE
#include "prot.h"
#include <string.h>
+/*
+ * This is only needed for backwards compatibility for Kerberos V3 (!)
+ * and it causes problems for shared libraries. So I've yanked it.
+ */
+#if 0
extern int req_act_vno; /* this is defined in the kerberos
* server code */
+#endif
/*
* This routine is used by the Kerberos authentication server to
u_char *t = (u_char *)(pkt->dat+1); /* Prot message type */
/* Create fixed part of packet */
+#if 0
*v = (unsigned char) req_act_vno; /* KRB_PROT_VERSION; */
+#else
+ *v = (unsigned char) KRB_PROT_VERSION;
+#endif
*t = (unsigned char) AUTH_MSG_ERR_REPLY;
*t |= HOST_BYTE_ORDER;