+2000-07-19 Danilo Almeida <dalmeida@mit.edu>
+
+ * accessor.c (krb5int_accessor): Add krb5int_accessor() to access
+ internal krb5 functions from outside the library (so that we don't
+ have to export them for the krb525 and gssapi libraries). The
+ goal is to make this function eventually do nothing.
+
+ * Makefile.in: Compile accessor.c.
+
2000-07-18 Ezra Peisach <epeisach@mit.edu>
* locate_kdc.c, hst_realm.c, def_realm.c, changepw.c: Include
--- /dev/null
+/*
+ * lib/krb5/os/accessor.c
+ *
+ * Copyright 1990 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 "os-proto.h"
+
+extern int krb5_max_skdc_timeout;
+extern int krb5_skdc_timeout_shift;
+extern int krb5_skdc_timeout_1;
+extern int krb5_max_dgram_size;
+
+KRB5_DLLIMP krb5_error_code KRB5_CALLCONV
+krb5int_accessor(internals, version)
+ krb5int_access* internals;
+ krb5_int32 version;
+{
+ if (version == KRB5INT_ACCESS_VERSION)
+ {
+ krb5int_access internals_temp;
+ internals_temp.krb5_locate_kdc = krb5_locate_kdc;
+ internals_temp.krb5_max_skdc_timeout = krb5_max_skdc_timeout;
+ internals_temp.krb5_skdc_timeout_shift = krb5_skdc_timeout_shift;
+ internals_temp.krb5_skdc_timeout_1 = krb5_skdc_timeout_1;
+ internals_temp.krb5_max_dgram_size = krb5_max_dgram_size;
+ *internals = internals_temp;
+ return 0;
+ }
+ return KRB5_OBSOLETE_FN;
+}