+1999-12-03 Danilo Almeida <dalmeida@mit.edu>
+
+ * changepw.c: Define ETIMEDOUT for Windows.
+
+1999-12-01 Ken Raeburn <raeburn@mit.edu>
+
+ * init_os_ctx.c (krb5_secure_config_files): Do define; always
+ return an error, but perform old functionality in case the error
+ is ignored. Delete when we can make a major version number
+ change.
+
+1999-11-23 Ken Raeburn <raeburn@mit.edu>
+
+ * an_to_ln.c (default_an_to_ln): Avoid stomping byte after
+ supplied buffer. Thanks to Matt Crawford.
+
+ * init_os_ctx.c (os_init_paths): Delete SECURE argument; read the
+ value from the profile structure instead.
+ (krb5_os_init_context, krb5_get_profile): Don't pass SECURE
+ argument.
+ (os_init_paths, krb5_get_profile): Cast first arg to
+ profile_init.
+ (krb5_secure_config_files): Don't define.
+
1999-11-22 Miro Jurisic <meeroh@mit.edu>
* ccdefname.c (get_from_os): Replaced Kerberos5GlobalsLib calls
free(def_realm);
strncpy(lname, krb5_princ_component(context, aname,0)->data,
min(krb5_princ_component(context, aname,0)->length,lnsize));
- if (lnsize < krb5_princ_component(context, aname,0)->length ) {
+ if (lnsize <= krb5_princ_component(context, aname,0)->length ) {
retval = KRB5_CONFIG_NOTENUFSPACE;
} else {
lname[krb5_princ_component(context, aname,0)->length] = '\0';
/*
* lib/krb5/os/changepw.c
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1999 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
#ifndef EHOSTUNREACH
#define EHOSTUNREACH WSAEHOSTUNREACH
#endif
+#ifndef ETIMEDOUT
+#define ETIMEDOUT WSAETIMEDOUT
+#endif
#endif /* _WIN32 && !__CYGWIN32__ */
/*
do not include user paths (from environment variables, etc.)
*/
static krb5_error_code
-os_init_paths(ctx, secure)
+os_init_paths(ctx)
krb5_context ctx;
- krb5_boolean secure;
{
krb5_error_code retval = 0;
profile_filespec_t *files = 0;
+ krb5_boolean secure = ctx->profile_secure;
- ctx->profile_secure = secure;
#ifdef KRB5_DNS_LOOKUP
ctx->profile_in_memory = 0;
#endif /* KRB5_DNS_LOOKUP */
retval = os_get_default_config_files(&files, secure);
if (!retval) {
- retval = profile_init(files, &ctx->profile);
+ retval = profile_init((const_profile_filespec_t *) files,
+ &ctx->profile);
#ifdef KRB5_DNS_LOOKUP
/* if none of the filenames can be opened use an empty profile */
if (retval == ENOENT) {
krb5_cc_set_default_name(ctx, NULL);
- retval = os_init_paths(ctx, FALSE);
+ retval = os_init_paths(ctx);
/*
* If there's an error in the profile, return an error. Just
retval = os_get_default_config_files(&files, ctx->profile_secure);
if (!retval)
- retval = profile_init(files, profile);
+ retval = profile_init((const_profile_filespec_t *) files, profile);
if (files)
free_filespecs(files);
krb5_secure_config_files(ctx)
krb5_context ctx;
{
+ /* Obsolete interface; always return an error.
+
+ This function should be removed next time a major version
+ number change happens. */
krb5_error_code retval;
if (ctx->profile) {
ctx->profile = 0;
}
- retval = os_init_paths(ctx, TRUE);
+ ctx->profile_secure = TRUE;
+ retval = os_init_paths(ctx);
+ if (retval)
+ return retval;
- return retval;
+ return KRB5_OBSOLETE_FN;
}
void