+Sat Feb 15 12:24:32 1997 Richard Basch <basch@lehman.com>
+
+ * Makefile.in: Link in ComErr library $(CLIB)
+ * kinit.c: Winsock initialization/teardown is now done by krb5 lib
+
Thu Feb 13 14:27:41 1997 Richard Basch <basch@lehman.com>
* Makefile.in:
##WIN32##CFLAGS = $(CCOPTS2) $(INCLUDES)
##WIN32##all-windows:: kinit.exe
-##WIN32##kinit.exe: kinit.obj
-##WIN32## link /nologo /out:$@ $*.obj \
-##WIN32## $(BUILDTOP)\util\windows\getopt.obj $(KLIB) wsock32.lib
+##WIN32##kinit.exe: kinit.obj $(BUILDTOP)\util\windows\getopt.obj $(KLIB) $(CLIB)
+##WIN32## link /nologo /out:$@ $**
clean-unix::
int pwsize;
char password[255], *client_name, prompt[255];
-#ifdef _WIN32
- {
- WORD version = 0x0101;
- WSADATA wsadata;
- int rc;
-
- rc = WSAStartup(version, &wsadata);
- if (rc) {
- fprintf(stderr, "%s: Couldn't initialize Winsock library\n",
- argv[0]);
- exit(1);
- }
- if (version != wsadata.wVersion) {
- fprintf(stderr, "%s: Winsock version 1.1 not available\n",
- argv[0]);
- exit(1);
- }
- }
-#endif
-
code = krb5_init_context(&kcontext);
if (code) {
com_err(argv[0], code, "while initializing krb5");
krb5_free_principal(kcontext, server);
krb5_free_context(kcontext);
-
-#ifdef _WIN32
- WSACleanup();
-#endif
-
+
exit(0);
}