summaryrefslogtreecommitdiffstats
path: root/src/clients/kdestroy
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-02-11 00:05:33 +0000
committerTheodore Tso <tytso@mit.edu>1995-02-11 00:05:33 +0000
commit1b18fa8cc90c04872530e3ddf0385ea7369bdc06 (patch)
tree260a56abe7f359299c780e58b260a9219299fb39 /src/clients/kdestroy
parente271fa6d625a898ccff8f95247cc7d17bf78e224 (diff)
downloadkrb5-1b18fa8cc90c04872530e3ddf0385ea7369bdc06.tar.gz
krb5-1b18fa8cc90c04872530e3ddf0385ea7369bdc06.tar.xz
krb5-1b18fa8cc90c04872530e3ddf0385ea7369bdc06.zip
Add check for libsocket and libnsl (sigh). krb5_init_ctx drags in
cryptoconf.c, which drags in enough of the crypto library that socket() gets called. We should to fix this eventually to make klist smaller, but the fix will be subtle. Sigh.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4943 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients/kdestroy')
-rw-r--r--src/clients/kdestroy/ChangeLog14
-rw-r--r--src/clients/kdestroy/Makefile.in3
-rw-r--r--src/clients/kdestroy/configure.in3
-rw-r--r--src/clients/kdestroy/kdestroy.c3
4 files changed, 19 insertions, 4 deletions
diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog
index 66937e8247..356863f3c7 100644
--- a/src/clients/kdestroy/ChangeLog
+++ b/src/clients/kdestroy/ChangeLog
@@ -1,3 +1,17 @@
+Fri Feb 10 18:46:17 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * Makefile.in (ISODELIB): Remove ISODE cruft. Use $(LIBS) so that
+ libsocket can be pulled in if necessary.
+
+ * kdestroy.c (main): Call krb5_init_context to initialize the
+ context.
+
+ * configure.in: Add check for libsocket and libnsl (sigh).
+ krb5_init_ctx drags in cryptoconf.c, which drags in enough
+ of the crypto library that socket() gets called. We should
+ to fix this eventually to make klist smaller, but the fix
+ will be subtle.
+
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
* Added krb5_context to all krb5_routines
diff --git a/src/clients/kdestroy/Makefile.in b/src/clients/kdestroy/Makefile.in
index 66289d6874..8fa5bb1f47 100644
--- a/src/clients/kdestroy/Makefile.in
+++ b/src/clients/kdestroy/Makefile.in
@@ -1,7 +1,6 @@
CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
LDFLAGS = -g
-ISODELIB=@ISODELIB@
COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
all::
@@ -10,7 +9,7 @@ KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(ISODELIB) $(COMERRLIB)
kdestroy: kdestroy.o $(DEPKLIB)
- $(CC) $(CFLAGS) -o kdestroy kdestroy.o $(KLIB)
+ $(CC) $(CFLAGS) -o kdestroy kdestroy.o $(KLIB) $(LIBS)
kdestroy.o: $(srcdir)/kdestroy.c
diff --git a/src/clients/kdestroy/configure.in b/src/clients/kdestroy/configure.in
index 045b4c8645..be05863392 100644
--- a/src/clients/kdestroy/configure.in
+++ b/src/clients/kdestroy/configure.in
@@ -4,6 +4,7 @@ AC_SET_BUILDTOP
AC_PROG_INSTALL
CONFIG_RULES
KRB_INCLUDE
-ISODE_INCLUDE
+AC_CHECK_LIB(socket,main)
+AC_CHECK_LIB(nsl,main)
WITH_KRB5ROOT
V5_AC_OUTPUT_MAKEFILE
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c
index 25f335560b..2b8ff4c734 100644
--- a/src/clients/kdestroy/kdestroy.c
+++ b/src/clients/kdestroy/kdestroy.c
@@ -39,7 +39,7 @@ main(argc, argv)
int argc;
char **argv;
{
- krb5_context kcontext;
+ krb5_context kcontext;
int c;
krb5_ccache cache = NULL;
char *cache_name = NULL;
@@ -47,6 +47,7 @@ main(argc, argv)
int errflg=0;
int quiet = 0;
+ krb5_init_context(&kcontext);
krb5_init_ets(kcontext);
if (strrchr(argv[0], '/'))