Add prototypes for library init and fini functions. Makefile dependencies
authorEzra Peisach <epeisach@mit.edu>
Fri, 28 May 2004 03:44:33 +0000 (03:44 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 28 May 2004 03:44:33 +0000 (03:44 +0000)
updated.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16371 dc483132-0cff-0310-8789-dd5450dbe970

15 files changed:
src/lib/krb5/ChangeLog
src/lib/krb5/Makefile.in
src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/Makefile.in
src/lib/krb5/ccache/cc-int.h
src/lib/krb5/ccache/ccbase.c
src/lib/krb5/keytab/ChangeLog
src/lib/krb5/keytab/Makefile.in
src/lib/krb5/keytab/kt-int.h [new file with mode: 0644]
src/lib/krb5/keytab/ktbase.c
src/lib/krb5/krb5_libinit.c
src/lib/krb5/rcache/ChangeLog
src/lib/krb5/rcache/Makefile.in
src/lib/krb5/rcache/rc-int.h [new file with mode: 0644]
src/lib/krb5/rcache/rc_base.c

index d7de41df71f0bd913a410158f57495cb87bc2338..9b4cb7ae750999b28db48e5837bddb678510a441 100644 (file)
@@ -1,3 +1,11 @@
+2004-05-27  Ezra Peisach  <epeisach@mit.edu>
+
+       * Makefile.in (LOCALINCLUDES): Include ccache, keytab and rcache
+       directories.
+
+       * krb5_libinit.c: Include cc-int.h, kt-int.h, rc-int.h for
+       init/fini prototypes.
+
 2004-05-05  Ken Raeburn  <raeburn@mit.edu>
 
        * libkrb5.exports: Export krb5int_foreach_localaddr for now.
index b2468136a34dbbca0b974e53be7676a6ce4e60ed..2744933166d2a243ee926fa3894b8a7e36c82dbd 100644 (file)
@@ -2,6 +2,7 @@ thisconfigdir=.
 myfulldir=lib/krb5
 mydir=.
 BUILDTOP=$(REL)..$(S)..
+LOCALINCLUDES = -I$(srcdir)/ccache -I$(srcdir)/keytab -I$(srcdir)/rcache
 LOCAL_SUBDIRS= error_tables asn.1 ccache keytab krb os rcache posix
 
 ##DOSBUILDTOP = ..\..
@@ -134,5 +135,9 @@ krb5_libinit.so krb5_libinit.po $(OUTPRE)krb5_libinit.$(OBJEXT): krb5_libinit.c
   $(COM_ERR_DEPS) $(BUILDTOP)/include/krb5.h $(BUILDTOP)/include/krb5_err.h \
   $(BUILDTOP)/include/kv5m_err.h $(BUILDTOP)/include/asn1_err.h \
   $(BUILDTOP)/include/kdb5_err.h krb5_libinit.h $(SRCTOP)/include/k5-platform.h \
-  $(SRCTOP)/include/k5-thread.h
+  $(SRCTOP)/include/k5-thread.h $(srcdir)/ccache/cc-int.h \
+  $(SRCTOP)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h \
+  $(BUILDTOP)/include/profile.h $(SRCTOP)/include/port-sockets.h \
+  $(SRCTOP)/include/socket-utils.h $(SRCTOP)/include/krb5/kdb.h \
+  $(srcdir)/keytab/kt-int.h $(srcdir)/rcache/rc-int.h
 
index 8a7e19f6cdf4f8202590b220086b955a5ff362c6..0ae29ece074d3d3cccf1c63a0189b670d79b0e58 100644 (file)
@@ -1,3 +1,10 @@
+2004-05-27  Ezra Peisach  <epeisach@mit.edu>
+
+       * ccbase.c: Include cc-int.h.
+
+       * cc-int.h (krb5int_cc_finalize): Add prototypes for 
+       krb5int_cc_{finalize,initialize}.
+
 2004-05-25  Jeffrey Altman <jaltman@mit.edu>
 
     * cc_mslsa.c:  GetMSTGT().  Initialize pTicketRequest to NULL 
@@ -7,6 +14,7 @@
       in the future.
       krb5_lcc_get_name(): fix return value if Kerberos is not supported.
 
+
 2004-05-24  Ezra Peisach  <epeisach@mit.edu>
 
        * t_cc.c (cc_test): Clean up memory leaks in tests.
index 7a6cacaa21654e18c3c434c99e541762aa8f7ece..4313e8d822fb267c6aa2acb3444a467fdd452bdd 100644 (file)
@@ -107,7 +107,7 @@ ccbase.so ccbase.po $(OUTPRE)ccbase.$(OBJEXT): ccbase.c $(SRCTOP)/include/k5-int
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
   $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
-  $(SRCTOP)/include/krb5/kdb.h fcc.h
+  $(SRCTOP)/include/krb5/kdb.h fcc.h cc-int.h
 cccopy.so cccopy.po $(OUTPRE)cccopy.$(OBJEXT): cccopy.c $(SRCTOP)/include/k5-int.h \
   $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
index 48ee4fb52a9406b447e37e4f93a23ffbfbfa8905..d890cf6bae24c8bedec3588340e4932a3d1c840b 100644 (file)
 krb5_boolean
 krb5int_cc_creds_match_request(krb5_context, krb5_flags whichfields, krb5_creds *mcreds, krb5_creds *creds);
 
+int
+krb5int_cc_initialize(void);
+
+void
+krb5int_cc_finalize(void);
+
 #endif /* __KRB5_CCACHE_H__ */
index f635147c26b00976e1de39b01baafb9c42c16a2e..d685ae14fb4620fdc359df450fec8a7500277e5b 100644 (file)
@@ -31,6 +31,7 @@
 #include "k5-thread.h"
 
 #include "fcc.h"
+#include "cc-int.h"
 
 struct krb5_cc_typelist {
     const krb5_cc_ops *ops;
index 48855a6b7b7118f07dcc45f6493c4e706fe281b6..88a97a9a0506f7be69d51a64647cdddd3d6d599e 100644 (file)
@@ -1,3 +1,11 @@
+2004-05-27  Ezra Peisach  <epeisach@mit.edu>
+
+       * ktbase.c: Include kt-int.h
+
+       * kt-int.h: Create file with prototypes for krb5int_kt_initialize and 
+       krb5int_kt_finalize(void);
+
+
 2004-04-24  Ken Raeburn  <raeburn@mit.edu>
 
        * ktbase.c: Include ctype.h.
index e6833818b3d2e59291e866b8cdbfc12944d49f39..0625cd9f81e9d03f7ec31337154b32451fd471c3 100644 (file)
@@ -72,7 +72,7 @@ ktbase.so ktbase.po $(OUTPRE)ktbase.$(OBJEXT): ktbase.c $(SRCTOP)/include/k5-int
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
   $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
-  $(SRCTOP)/include/krb5/kdb.h
+  $(SRCTOP)/include/krb5/kdb.h kt-int.h
 ktdefault.so ktdefault.po $(OUTPRE)ktdefault.$(OBJEXT): ktdefault.c $(SRCTOP)/include/k5-int.h \
   $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
diff --git a/src/lib/krb5/keytab/kt-int.h b/src/lib/krb5/keytab/kt-int.h
new file mode 100644 (file)
index 0000000..23bbc55
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * lib/krb5/keytab/kt-int.h
+ *
+ * Copyright 2004 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.
+ * 
+ *
+ * This file contains constant and function declarations used in the
+ * file-based credential cache routines.
+ */
+
+#ifndef __KRB5_KEYTAB_INT_H__
+#define __KRB5_KEYTAB_INT_H__
+
+
+int krb5int_kt_initialize(void);
+
+void krb5int_kt_finalize(void);
+
+#endif /* __KRB5_KEYTAB_INT_H__ */
index 74ff20cf66b5b40ca37042726fbf679836ae9692..e633c0c3a76debb7830602c57ddd9d07b47b81c6 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "k5-int.h"
 #include "k5-thread.h"
+#include "kt-int.h"
 
 extern const krb5_kt_ops krb5_ktf_ops;
 extern const krb5_kt_ops krb5_ktf_writable_ops;
index 6b7bf23ef8c905855cb83088fe21de862fdd6656..ce3c08ee7d03ff694aaf2a34d6e97c1f472f671d 100644 (file)
@@ -14,6 +14,9 @@
 
 #include "krb5_libinit.h"
 #include "k5-platform.h"
+#include "cc-int.h"
+#include "kt-int.h"
+#include "rc-int.h"
 
 static int             initialized = 0;
 
@@ -43,8 +46,6 @@ int krb5int_lib_init(void)
 /* Always-delayed initialization -- error table linkage, etc.  */
 krb5_error_code krb5int_initialize_library (void)
 {
-    int err;
-
     if (!initialized) {
 #if !USE_BUNDLE_ERROR_STRINGS
        add_error_table(&et_krb5_error_table);
index b2c49135c6d5926d5adc415099e1b9da0512752f..2b4b65da2bc50dcefce7f823badae147a5746201 100644 (file)
@@ -1,3 +1,10 @@
+2004-05-27  Ezra Peisach  <epeisach@mit.edu>
+
+       * rc_base.c: Include rc-int.h
+
+       * rc-int.h: Create file with prototypes for krb5int_rc_finish_init and 
+       krb5int_rc_terminate.
+
 2004-05-24  Ezra Peisach  <epeisach@mit.edu>
 
        * rc_io.c (krb5_rc_io_open_internal): If file could not be open,
index 21d396072f0884ac22afc39e2ede11e46bbc011f..3f753d4f99f7daf31a52b702d01db51e3fcadb40 100644 (file)
@@ -51,7 +51,7 @@ rc_base.so rc_base.po $(OUTPRE)rc_base.$(OBJEXT): rc_base.c rc_base.h $(SRCTOP)/
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
   $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS) $(BUILDTOP)/include/profile.h \
   $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
-  $(SRCTOP)/include/krb5/kdb.h
+  $(SRCTOP)/include/krb5/kdb.h rc-int.h
 rc_dfl.so rc_dfl.po $(OUTPRE)rc_dfl.$(OBJEXT): rc_dfl.c rc_base.h $(SRCTOP)/include/k5-int.h \
   $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h \
   $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
diff --git a/src/lib/krb5/rcache/rc-int.h b/src/lib/krb5/rcache/rc-int.h
new file mode 100644 (file)
index 0000000..613d7e9
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * lib/krb5/keytab/rc-int.h
+ *
+ * Copyright 2004 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.
+ * 
+ *
+ * This file contains constant and function declarations used in the
+ * file-based credential cache routines.
+ */
+
+#ifndef __KRB5_RCACHE_INT_H__
+#define __KRB5_RCACHE_INT_H__
+
+int krb5int_rc_finish_init(void);
+
+void krb5int_rc_terminate(void);
+
+#endif /* __KRB5_RCACHE_INT_H__ */
index bde942a5dd347b719e251886f021a72d3a9e8e7d..4146cc8d65dc7d6c9305982aa74d40a8fa1d8740 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "rc_base.h"
+#include "rc-int.h"
 #include "k5-thread.h"
 
 #define FREE(x) ((void) free((char *) (x)))