krb5_error_code krb5_use_natural_time(krb5_context);
krb5_error_code krb5_set_time_offsets(krb5_context, krb5_timestamp,
krb5_int32);
-/*
- * The realm iterator functions
- */
-
-krb5_error_code KRB5_CALLCONV
-krb5_realm_iterator_create(krb5_context context, void **iter_p);
-
-krb5_error_code KRB5_CALLCONV
-krb5_realm_iterator(krb5_context context, void **iter_p, char **ret_realm);
-
-void KRB5_CALLCONV
-krb5_realm_iterator_free(krb5_context context, void **iter_p);
-
-void KRB5_CALLCONV krb5_free_realm_string(krb5_context context, char *str);
/* Internal principal function used by KIM to avoid code duplication */
krb5_error_code KRB5_CALLCONV
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
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
read_msg.o \
read_pwd.o \
realm_dom.o \
- realm_iter.o \
sendto_kdc.o \
sn2princ.o \
thread_safe.o \
$(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) \
$(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 \
$(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)
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)
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)
$(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 \
$(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 \
+++ /dev/null
-/* -*- 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);
-}
+++ /dev/null
-/* -*- 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;
-}
/* ------------------------------------------------------------------------- */
-TYPEDEF_FUNC(
- krb5_error_code,
- KRB5_CALLCONV,
- krb5_realm_iterator_create,
- (krb5_context context, void **iter_p)
- );
-
-TYPEDEF_FUNC(
- krb5_error_code,
- KRB5_CALLCONV,
- krb5_realm_iterator,
- (krb5_context context, void **iter_p, char **ret_realm)
- );
-
-TYPEDEF_FUNC(
- void,
- KRB5_CALLCONV,
- krb5_realm_iterator_free,
- (krb5_context context, void **iter_p)
- );
-
-TYPEDEF_FUNC(
- void,
- KRB5_CALLCONV,
- krb5_free_realm_string,
- (krb5_context context, char *str)
- );
-
TYPEDEF_FUNC(
krb5_prompt_type*,
KRB5_CALLCONV,