From 76b7537118e929e0ae3941fbe157b4c3817107d3 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Fri, 21 Apr 1995 16:47:10 +0000 Subject: [PATCH] * main.c (main): Handle -k if KRB5 is defined. (from ian@cygnus.com) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5425 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnet/ChangeLog | 4 ++++ src/appl/telnet/telnet/main.c | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index a16af70f9..e65952bd3 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -1,3 +1,7 @@ +Fri Apr 21 12:45:40 1995 Mark Eichin + + * 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 diff --git a/src/appl/telnet/telnet/main.c b/src/appl/telnet/telnet/main.c index 432227e87..1b41ee148 100644 --- a/src/appl/telnet/telnet/main.c +++ b/src/appl/telnet/telnet/main.c @@ -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); -- 2.26.2