+Wed Apr 27 11:00:00 1995 Keith Vetter (keithv@fusion.com)
+
+ * Makefile.in: need to include profile.lib in the DLL.
+
Thu Apr 27 13:32:35 1995 Mark Eichin <eichin@cygnus.com>
* configure.in: add kdb4 directory.
KLIB = krb5\krb5.lib
GLIB = gssapi\gssapi.lib
ETLIB = $(BUILDTOP)\util\et\comerr.lib
+PLIB = $(BUILDTOP)\util\profile\profile.lib
WLIB = .\winsock.lib
-LIBS = $(CLIB) $(KLIB) $(GLIB) $(ETLIB) $(WLIB)
+LIBS = $(CLIB) $(KLIB) $(GLIB) $(ETLIB) $(PLIB) $(WLIB)
lib-windows: winsock.lib libkrb5.lib gssapi.lib
@echo Making in lib\des425
cd ..\des425
-$(MAKE) -$(MFLAGS) LIBCMD=$(LIBCMD)
- @echo Making locally
+ @echo Making in lib
cd ..
all-windows:: libkrb5.lib gssapi.lib
@echo Making clean in lib\des425
cd ..\des425
-$(MAKE) -$(MFLAGS) clean
- @echo Making clean locally
+ @echo Making clean in lib
cd ..
+Wed Apr 27 11:30:00 1995 Keith Vetter (keithv@fusion.com)
+
+ * init_ctx.c: krb5_init_context wasn't checking return values.
+ * mk_req.c: deleted unused local variable.
Wed Apr 26 22:49:18 1995 Chris Provenzano (proven@mit.edu)
krb5_principal server;
krb5_creds * credsp;
krb5_creds creds;
- char ** realm;
retval = krb5_sname_to_principal(context, hostname, service,
KRB5_NT_SRV_HST, &server);
+Wed Apr 27 11:30:00 1995 Keith Vetter (keithv@fusion.com)
+
+ * osconfig.c: krb5_find_config_files only used for OLD_CONFIG_FILES.
+ * init_os_.c: Get config file location via windows ini files.
+
Thu Apr 27 13:04:54 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* Makefile.in (clean): Remove t_std_conf.o
* krb5_init_contex()
*/
+#define NEED_WINDOWS
#include "k5-int.h"
krb5_error_code
krb5_context ctx;
{
krb5_os_context os_ctx;
- krb5_error_code retval;
+ krb5_error_code retval = 0;
char *name;
const char *filenames[2];
ctx->os_context = (void *) os_ctx;
#ifndef OLD_CONFIG_FILES
+#ifdef _WINDOWS
+ {
+ char defname[160]; /* Default value */
+ char krb5conf[160]; /* Actual value */
+
+ GetWindowsDirectory(defname, sizeof(defname) - 10);
+ strcat (defname, "\\");
+ strcat (defname, DEFAULT_PROFILE_FILENAME);
+ GetPrivateProfileString(INI_FILES, INI_KRB5_CONF, defname,
+ krb5conf, sizeof(krb5conf), KERBEROS_INI);
+ name = krb5conf;
+
+ filenames[0] = name;
+ filenames[1] = 0;
+ }
+
+#else /* _WINDOWS */
+
/*
* When the profile routines are later enhanced, we will try
* including a config file from user's home directory here.
filenames[0] = name ? name : DEFAULT_PROFILE_FILENAME;
filenames[1] = 0;
+#endif /* _WINDOWS */
+
retval = profile_init(filenames, &ctx->profile);
if (retval)
ctx->profile = 0;
#endif
-
- return 0;
+
+ return retval;
}
void
* Definition of default configuration parameters.
*/
+#ifdef OLD_CONFIG_FILES
#define NEED_WINDOWS
+#endif
#include "k5-int.h"
char *krb5_config_file = DEFAULT_CONFIG_FILENAME;
char *krb5_default_pwd_prompt1 = DEFAULT_PWD_STRING1;
char *krb5_default_pwd_prompt2 = DEFAULT_PWD_STRING2;
+#ifdef OLD_CONFIG_FILES
/*
* On Windows, we want to let the user specify in the kerberos.ini file
* where the config and realms files, krb.con and krb.rea, reside. If they
return 0;
}
+#endif /* OLD_CONFIG_FILES */
+