Move prototype for krb5int_random_string from k5-int.h to cc-int.h as
authorEzra Peisach <epeisach@mit.edu>
Fri, 15 Aug 2008 18:46:12 +0000 (18:46 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 15 Aug 2008 18:46:12 +0000 (18:46 +0000)
it is private to the ccache code. Include cc-int.h where needed, and
update Makefile.in dependencies.

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

src/include/k5-int.h
src/lib/krb5/ccache/Makefile.in
src/lib/krb5/ccache/cc-int.h
src/lib/krb5/ccache/cc_keyring.c
src/lib/krb5/ccache/cc_memory.c

index b9abd8a34b92e7a3e6e8f8d4ccc8e8ad1143b066..76c2ba0f4401c05c176616f92a2db4d8ebf93a7b 100644 (file)
@@ -1762,8 +1762,6 @@ krb5_error_code
 krb5int_generate_and_save_subkey (krb5_context, krb5_auth_context,
                                  krb5_keyblock * /* Old keyblock, not new!  */);
 
-krb5_error_code krb5int_random_string (krb5_context, char *, unsigned int);
-
 /* set and change password helpers */
 
 krb5_error_code krb5int_mk_chpw_req
index 360b6cf444fda05c0c83d059ea6aaeac6c264ee1..208ae651ae62c8a3f850d065b144f2e837bcfbfc 100644 (file)
@@ -189,7 +189,7 @@ cc_memory.so cc_memory.po $(OUTPRE)cc_memory.$(OBJEXT): \
   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h cc_memory.c
+  $(SRCTOP)/include/socket-utils.h cc-int.h cc_memory.c
 cc_keyring.so cc_keyring.po $(OUTPRE)cc_keyring.$(OBJEXT): \
   $(BUILDTOP)/include/autoconf.h $(BUILDTOP)/include/krb5/krb5.h \
   $(BUILDTOP)/include/osconf.h $(BUILDTOP)/include/profile.h \
@@ -198,7 +198,7 @@ cc_keyring.so cc_keyring.po $(OUTPRE)cc_keyring.$(OBJEXT): \
   $(SRCTOP)/include/k5-plugin.h $(SRCTOP)/include/k5-thread.h \
   $(SRCTOP)/include/krb5.h $(SRCTOP)/include/krb5/locate_plugin.h \
   $(SRCTOP)/include/krb5/preauth_plugin.h $(SRCTOP)/include/port-sockets.h \
-  $(SRCTOP)/include/socket-utils.h cc_keyring.c
+  $(SRCTOP)/include/socket-utils.h cc-int.h cc_keyring.c
 ccfns.so ccfns.po $(OUTPRE)ccfns.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
   $(BUILDTOP)/include/krb5/krb5.h $(BUILDTOP)/include/osconf.h \
   $(BUILDTOP)/include/profile.h $(COM_ERR_DEPS) $(SRCTOP)/include/k5-err.h \
index 430e4c3755b1394ade96c2c49a539813947b44de..2978ed9fb6568199a8cfd69925eb02b8fa85fb28 100644 (file)
@@ -42,6 +42,8 @@ krb5int_cc_initialize(void);
 void
 krb5int_cc_finalize(void);
 
+krb5_error_code krb5int_random_string (krb5_context, char *, unsigned int);
+
 extern k5_mutex_t krb5int_mcc_mutex;
 extern k5_mutex_t krb5int_krcc_mutex;
 extern k5_mutex_t krb5int_cc_file_mutex;
index d892584fee7933b6a3cc53627a1ef7321a1e74e1..be22a8365e662a4dfe125ac2a837bf8034cb8c78 100644 (file)
@@ -70,7 +70,7 @@
  *       special key, which is not counted in the 'numkeys' count
  */
 
-#include "k5-int.h"
+#include "cc-int.h"
 
 #ifdef USE_KEYRING_CCACHE
 
index 0014407c77f60c1936168f8d38f1d53c2ae2499a..dc0fd3422000d0ef146ec90af450e3a55801e6c2 100644 (file)
@@ -26,7 +26,7 @@
  *
  * implementation of memory-based credentials cache
  */
-#include "k5-int.h"
+#include "cc-int.h"
 #include <errno.h>
 
 static krb5_error_code KRB5_CALLCONV krb5_mcc_close