]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Move krb5_get_profile back to init_os_ctx.c for now and revert r23519.
authorGreg Hudson <ghudson@mit.edu>
Mon, 28 Dec 2009 19:25:09 +0000 (19:25 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 28 Dec 2009 19:25:09 +0000 (19:25 +0000)
At this time we link t_etypes against init_ctx.so during "make check",
which breaks if init_ctx contains reference to the profile library.
More general solutions to this problem are under discussion.

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

src/lib/krb5/krb/Makefile.in
src/lib/krb5/krb/init_ctx.c
src/lib/krb5/os/Makefile.in
src/lib/krb5/os/init_os_ctx.c

index c5dc49adc0d0eeaadb86b44b24785157ad20c1c6..507be6e805deea113b3cfa847d8f8b79beb0b440 100644 (file)
@@ -3,7 +3,7 @@ BUILDTOP=$(REL)..$(S)..$(S)..
 RUN_SETUP = @KRB5_RUN_ENV@
 PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
-LOCALINCLUDES = -I$(srcdir)/../os -I$(top_srcdir) -I$(top_srcdir)/util/profile
+LOCALINCLUDES = -I$(srcdir)/../os -I$(top_srcdir)
 DEFS=-DLIBDIR=\"$(KRB5_LIBDIR)\"
 
 ##DOS##BUILDTOP = ..\..\..
index c5c29ca3ec37c2ddc15626805483cdca2a5f9043..6ffee90bb7d3847c3fdd6b22b119358025a2d0ca 100644 (file)
@@ -54,7 +54,6 @@
  */
 
 #include "k5-int.h"
-#include "prof_int.h"        /* XXX for profile_copy, not public yet */
 #include <ctype.h>
 #include "brand.c"
 /* There has to be a better way for windows... */
@@ -648,9 +647,3 @@ errout:
     }
     return ret;
 }
-
-krb5_error_code KRB5_CALLCONV
-krb5_get_profile (krb5_context ctx, profile_t *profile)
-{
-    return profile_copy (ctx->profile, profile);
-}
index 215d39014971c61123aaa6ba29e6ab240c6db3cd..5a813023702c74406155d6d3ee7efe841350ccef 100644 (file)
@@ -5,6 +5,7 @@ PROG_LIBPATH=-L$(TOPLIBD)
 PROG_RPATH=$(KRB5_LIBDIR)
 DEFS=
 DEFINES=-DLIBDIR=\"$(KRB5_LIBDIR)\"
+LOCALINCLUDES=-I$(top_srcdir)/util/profile
 
 ##DOS##BUILDTOP = ..\..\..
 ##DOS##PREFIXDIR=os
index 70841a42f04414ad4861346b7a5e565f781fe4c8..7f2110f8e4b1b699e7d330a456649eea73960d6d 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "k5-int.h"
 #include "os-proto.h"
+#include "prof_int.h"        /* XXX for profile_copy, not public yet */
 
 #ifdef USE_KIM
 #include "kim_library_private.h"
@@ -401,6 +402,12 @@ krb5_os_init_context(krb5_context ctx, krb5_boolean kdc)
     return retval;
 }
 
+krb5_error_code KRB5_CALLCONV
+krb5_get_profile (krb5_context ctx, profile_t *profile)
+{
+    return profile_copy (ctx->profile, profile);
+}
+
 krb5_error_code
 krb5_set_config_files(krb5_context ctx, const char **filenames)
 {