Need to link with $(CLIB) - comerr library (win32)
authorRichard Basch <probe@mit.edu>
Sat, 15 Feb 1997 21:33:43 +0000 (21:33 +0000)
committerRichard Basch <probe@mit.edu>
Sat, 15 Feb 1997 21:33:43 +0000 (21:33 +0000)
Removed winsock code from kinit.c (now handled by krb5 lib)

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

src/clients/kinit/ChangeLog
src/clients/kinit/Makefile.in
src/clients/kinit/kinit.c

index e2d0abc1be46b6279b81354e01f1906debc90531..cf3e5d924ff7e3a24122f5b939a9b47039b82c65 100644 (file)
@@ -1,3 +1,8 @@
+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:
index 14f8be84aed5bfffbcbc8c98602b31bfb909fc8d..b9799120a52b8c7869f7221ad4685d995a972f86 100644 (file)
@@ -16,9 +16,8 @@ kinit: kinit.o $(KRB5_BASE_DEPLIBS)
 ##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::
index fe4ae3266d8ca2d74acc1462befaeea54ad1b03b..f5ca4268314e1d619e1042a433018fd577bd45e4 100644 (file)
@@ -91,26 +91,6 @@ main(argc, argv)
     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");
@@ -400,11 +380,7 @@ main(argc, argv)
     krb5_free_principal(kcontext, server);
 
     krb5_free_context(kcontext);
-    
-#ifdef _WIN32
-    WSACleanup();
-#endif
-    
+
     exit(0);
 }