* main.c (main): Handle -k if KRB5 is defined. (from ian@cygnus.com)
authorMark Eichin <eichin@mit.edu>
Fri, 21 Apr 1995 16:47:10 +0000 (16:47 +0000)
committerMark Eichin <eichin@mit.edu>
Fri, 21 Apr 1995 16:47:10 +0000 (16:47 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5425 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnet/ChangeLog
src/appl/telnet/telnet/main.c

index a16af70f902b5f24056bea9826a7c84b48b41e84..e65952bd3d61f5e7fa39c7f2143d4a30890fc8d7 100644 (file)
@@ -1,3 +1,7 @@
+Fri Apr 21 12:45:40 1995  Mark Eichin  <eichin@cygnus.com>
+
+       * main.c (main): Handle -k if KRB5 is defined. (from ian@cygnus.com)
+
 Wed Mar 29 15:39:02 1995  Theodore Y. Ts'o  (tytso@dcl)
 
        * Makefile.in: Add dependency for libtelnet.a
index 432227e875093f4567b4b09707b7bba5ab80fc7e..1b41ee148ff24a612815a2a7f0210be38d08dd4b 100644 (file)
@@ -225,7 +225,16 @@ main(argc, argv)
                        dest_realm = dst_realm_buf;
                        (void)strncpy(dest_realm, optarg, dst_realm_sz);
                    }
-#else
+#endif
+#if defined(AUTHENTICATION) && defined(KRB5)
+                   {
+                       extern char *telnet_krb5_realm;
+
+                       telnet_krb5_realm = optarg;
+                       break;
+                   }
+#endif
+#if !defined(AUTHENTICATION) || (!defined(KRB4) && !defined(KRB5))
                        fprintf(stderr,
                           "%s: Warning: -k ignored, no Kerberos V4 support.\n",
                                                                prompt);