way to set a new set of config files for a particular OS
context.
init_os_ctx.c (krb5_os_init_context): Don't return an error if
profile_init() returns an error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5668
dc483132-0cff-0310-8789-
dd5450dbe970
* osconfig.c: Global variables krb5_config_file and
krb5_trans_file conditionalized on OLD_CONFIG_FILES.
+Sat Apr 29 07:07:22 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
+
+ * init_os_ctx.c (krb5_set_config_files): New function. Provides a
+ way to set a new set of config files for a particular OS
+ context.
+
+ * init_os_ctx.c (krb5_os_init_context): Don't return an error if
+ profile_init() returns an error.
+
Fri Apr 28 09:58:31 EDT 1995 Paul Park (pjpark@mit.edu)
Move adm_conn.c from libkrb5 to libkadm.
if (retval)
ctx->profile = 0;
#endif
+ /*
+ * We ignore errors if the profile can not be initialized,
+ * since there must be a way to get a context even if the
+ * default krb5.conf file doesn't exist.
+ */
+
+ return 0;
+}
+
+krb5_error_code INTERFACE
+krb5_set_config_files(ctx, filenames)
+ krb5_context ctx;
+ char **filenames;
+{
+ krb5_error_code retval;
+ profile_t profile;
+
+ retval = profile_init(filenames, &profile);
+ if (retval)
+ return retval;
+
+ if (ctx->profile)
+ profile_release(ctx->profile);
+ ctx->profile = profile;
- return retval;
+ return 0;
}
void