From: Mark Eichin Date: Fri, 21 Apr 1995 16:47:10 +0000 (+0000) Subject: * main.c (main): Handle -k if KRB5 is defined. (from ian@cygnus.com) X-Git-Tag: krb5-1.0-beta5~321 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76b7537118e929e0ae3941fbe157b4c3817107d3;p=krb5.git * 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 --- 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);