summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorZhanna Tsitkov <tsitkova@mit.edu>2012-01-04 15:47:52 +0000
committerZhanna Tsitkov <tsitkova@mit.edu>2012-01-04 15:47:52 +0000
commitef2a96a8cf63c7d207805aff94fead695993d660 (patch)
tree9b989a24f3fc065f73108a9fc2aae0319168fd19 /src/lib
parent08d4890edef5bd809da597d8de056c85800224d0 (diff)
downloadkrb5-ef2a96a8cf63c7d207805aff94fead695993d660.tar.gz
krb5-ef2a96a8cf63c7d207805aff94fead695993d660.tar.xz
krb5-ef2a96a8cf63c7d207805aff94fead695993d660.zip
Remove unused functions (older API residue) krb5_realm_iterator* and krb5_free_realm_string
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25606 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/libkrb5.exports4
-rw-r--r--src/lib/krb5/os/Makefile.in10
-rw-r--r--src/lib/krb5/os/deps14
-rw-r--r--src/lib/krb5/os/realm_iter.c58
-rw-r--r--src/lib/krb5/os/t_realm_iter.c47
5 files changed, 1 insertions, 132 deletions
diff --git a/src/lib/krb5/libkrb5.exports b/src/lib/krb5/libkrb5.exports
index 183d5ee76..2d65e7f5b 100644
--- a/src/lib/krb5/libkrb5.exports
+++ b/src/lib/krb5/libkrb5.exports
@@ -321,7 +321,6 @@ krb5_free_priv
krb5_free_priv_enc_part
krb5_free_pwd_data
krb5_free_pwd_sequences
-krb5_free_realm_string
krb5_free_realm_tree
krb5_free_safe
krb5_free_sam_challenge
@@ -528,9 +527,6 @@ krb5_rd_safe
krb5_read_message
krb5_read_password
krb5_realm_compare
-krb5_realm_iterator
-krb5_realm_iterator_create
-krb5_realm_iterator_free
krb5_recvauth
krb5_recvauth_version
krb5_register_serializer
diff --git a/src/lib/krb5/os/Makefile.in b/src/lib/krb5/os/Makefile.in
index 8032fa5d2..19f5c33b4 100644
--- a/src/lib/krb5/os/Makefile.in
+++ b/src/lib/krb5/os/Makefile.in
@@ -45,7 +45,6 @@ STLIBOBJS= \
read_msg.o \
read_pwd.o \
realm_dom.o \
- realm_iter.o \
sendto_kdc.o \
sn2princ.o \
thread_safe.o \
@@ -90,7 +89,6 @@ OBJS= \
$(OUTPRE)read_msg.$(OBJEXT) \
$(OUTPRE)read_pwd.$(OBJEXT) \
$(OUTPRE)realm_dom.$(OBJEXT) \
- $(OUTPRE)realm_iter.$(OBJEXT) \
$(OUTPRE)sendto_kdc.$(OBJEXT) \
$(OUTPRE)sn2princ.$(OBJEXT) \
$(OUTPRE)thread_safe.$(OBJEXT) \
@@ -134,7 +132,6 @@ SRCS= \
$(srcdir)/read_msg.c \
$(srcdir)/read_pwd.c \
$(srcdir)/realm_dom.c \
- $(srcdir)/realm_iter.c \
$(srcdir)/port2ip.c \
$(srcdir)/sendto_kdc.c \
$(srcdir)/sn2princ.c \
@@ -147,7 +144,7 @@ SRCS= \
$(srcdir)/write_msg.c
EXTRADEPSRCS = \
- t_an_to_ln.c t_gifconf.c t_locate_kdc.c t_realm_iter.c \
+ t_an_to_ln.c t_gifconf.c t_locate_kdc.c \
t_std_conf.c
##DOS##LIBOBJS = $(OBJS)
@@ -166,8 +163,6 @@ T_AN_TO_LN_OBJS = t_an_to_ln.o an_to_ln.o
T_KUSEROK_OBJS = t_kuserok.o
-T_REALM_ITER_OBJS = t_realm_iter.o realm_iter.o
-
t_std_conf: $(T_STD_CONF_OBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o t_std_conf $(T_STD_CONF_OBJS) $(KRB5_BASE_LIBS)
@@ -177,9 +172,6 @@ t_an_to_ln: $(T_AN_TO_LN_OBJS) $(KRB5_BASE_DEPLIBS)
t_kuserok: $(T_KUSEROK_OBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o t_kuserok $(T_KUSEROK_OBJS) $(KRB5_BASE_LIBS)
-t_realm_iter: $(T_REALM_ITER_OBJS) $(KRB5_BASE_DEPLIBS)
- $(CC_LINK) -o t_realm_iter $(T_REALM_ITER_OBJS) $(KRB5_BASE_LIBS)
-
t_localaddr: localaddr.c
$(CC_LINK) $(ALL_CFLAGS) -DTEST -o t_localaddr $(srcdir)/localaddr.c $(KRB5_BASE_LIBS) $(LIBS)
diff --git a/src/lib/krb5/os/deps b/src/lib/krb5/os/deps
index 3c5a5e6ec..9116cbf3d 100644
--- a/src/lib/krb5/os/deps
+++ b/src/lib/krb5/os/deps
@@ -374,17 +374,6 @@ realm_dom.so realm_dom.po $(OUTPRE)realm_dom.$(OBJEXT): \
$(top_srcdir)/include/krb5/authdata_plugin.h $(top_srcdir)/include/krb5/plugin.h \
$(top_srcdir)/include/krb5/preauth_plugin.h $(top_srcdir)/include/port-sockets.h \
$(top_srcdir)/include/socket-utils.h realm_dom.c
-realm_iter.so realm_iter.po $(OUTPRE)realm_iter.$(OBJEXT): \
- $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
- $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
- $(COM_ERR_DEPS) $(top_srcdir)/include/k5-buf.h $(top_srcdir)/include/k5-err.h \
- $(top_srcdir)/include/k5-gmt_mktime.h $(top_srcdir)/include/k5-int-pkinit.h \
- $(top_srcdir)/include/k5-int.h $(top_srcdir)/include/k5-platform.h \
- $(top_srcdir)/include/k5-plugin.h $(top_srcdir)/include/k5-thread.h \
- $(top_srcdir)/include/k5-trace.h $(top_srcdir)/include/krb5.h \
- $(top_srcdir)/include/krb5/authdata_plugin.h $(top_srcdir)/include/krb5/plugin.h \
- $(top_srcdir)/include/krb5/preauth_plugin.h $(top_srcdir)/include/port-sockets.h \
- $(top_srcdir)/include/socket-utils.h realm_iter.c
port2ip.so port2ip.po $(OUTPRE)port2ip.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
$(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
$(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(top_srcdir)/include/k5-buf.h \
@@ -519,9 +508,6 @@ t_locate_kdc.so t_locate_kdc.po $(OUTPRE)t_locate_kdc.$(OBJEXT): \
$(top_srcdir)/include/port-sockets.h $(top_srcdir)/include/socket-utils.h \
dnsglue.c dnsglue.h dnssrv.c locate_kdc.c os-proto.h \
t_locate_kdc.c
-t_realm_iter.so t_realm_iter.po $(OUTPRE)t_realm_iter.$(OBJEXT): \
- $(BUILDTOP)/include/krb5/krb5.h $(COM_ERR_DEPS) $(top_srcdir)/include/krb5.h \
- t_realm_iter.c
t_std_conf.so t_std_conf.po $(OUTPRE)t_std_conf.$(OBJEXT): \
$(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
$(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
diff --git a/src/lib/krb5/os/realm_iter.c b/src/lib/krb5/os/realm_iter.c
deleted file mode 100644
index 2fb1f039e..000000000
--- a/src/lib/krb5/os/realm_iter.c
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-/* lib/krb5/os/realm_iter.c */
-/*
- * Copyright 1998 by the Massachusetts Institute of Technology.
- * All Rights Reserved.
- *
- * Export of this software from the United States of America may
- * require a specific license from the United States Government.
- * It is the responsibility of any person or organization contemplating
- * export to obtain such a license before exporting.
- *
- * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
- * distribute this software and its documentation for any purpose and
- * without fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright notice and
- * this permission notice appear in supporting documentation, and that
- * the name of M.I.T. not be used in advertising or publicity pertaining
- * to distribution of the software without specific, written prior
- * permission. Furthermore if you modify this software you must label
- * your software as modified software and not distribute it in such a
- * fashion that it might be confused with the original M.I.T. software.
- * M.I.T. makes no representations about the suitability of
- * this software for any purpose. It is provided "as is" without express
- * or implied warranty.
- */
-
-#include "k5-int.h"
-#include <ctype.h>
-#include <stdio.h>
-
-krb5_error_code KRB5_CALLCONV
-krb5_realm_iterator_create(krb5_context context, void **iter_p)
-{
- static const char *const names[] = { "realms", 0 };
-
- return profile_iterator_create(context->profile, names,
- PROFILE_ITER_LIST_SECTION |
- PROFILE_ITER_SECTIONS_ONLY,
- iter_p);
-}
-
-krb5_error_code KRB5_CALLCONV
-krb5_realm_iterator(krb5_context context, void **iter_p, char **ret_realm)
-{
- return profile_iterator(iter_p, ret_realm, 0);
-}
-
-void KRB5_CALLCONV
-krb5_realm_iterator_free(krb5_context context, void **iter_p)
-{
- profile_iterator_free(iter_p);
-}
-
-void KRB5_CALLCONV
-krb5_free_realm_string(krb5_context context, char *str)
-{
- profile_release_string(str);
-}
diff --git a/src/lib/krb5/os/t_realm_iter.c b/src/lib/krb5/os/t_realm_iter.c
deleted file mode 100644
index 960318910..000000000
--- a/src/lib/krb5/os/t_realm_iter.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-#include "krb5.h"
-
-#include <stdio.h>
-
-void
-test_realm_iterator(int ctx)
-{
- krb5_error_code retval;
- char *realm;
- void *iter;
-
- if ((retval = krb5_realm_iterator_create(ctx, &iter))) {
- com_err("krb5_realm_iterator_create", retval, 0);
- return;
- }
- while (iter) {
- if ((retval = krb5_realm_iterator(ctx, &iter, &realm))) {
- com_err("krb5_realm_iterator", retval, 0);
- krb5_realm_iterator_free(ctx, &iter);
- return;
- }
- if (realm) {
- printf("Realm: '%s'\n", realm);
- krb5_free_realm_string(ctx, realm);
- }
- }
-}
-
-int
-main(int argc, char **argv)
-{
- krb5_context ctx;
- krb5_error_code retval;
-
- retval = krb5_init_context(&ctx);
- if (retval) {
- fprintf(stderr, "krb5_init_context returned error %ld\n",
- retval);
- exit(1);
- }
-
- test_realm_iterator(ctx);
-
- krb5_free_context(ctx);
- return 0;
-}