From e168a33ba98c3ccc7d78dfcb8817fa6c00320aea Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 22 Apr 1995 04:55:11 +0000 Subject: [PATCH] Don't use krb5_override_default_realm, as it is obsolete (non-existent). Use krb5_set_default_realm instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5450 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/ChangeLog | 6 ++++++ src/appl/telnet/telnetd/telnetd.c | 12 +++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index cb49fd2f2..4eb854f97 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,9 @@ +Sat Apr 22 00:52:01 1995 Theodore Y. Ts'o (tytso@dcl) + + * telnetd.c (main): Don't use krb5_override_default_realm, as it + is obsolete (non-existent). Use krb5_set_default_realm + instead. + Fri Apr 21 12:47:57 1995 Mark Eichin From Ian Taylor . diff --git a/src/appl/telnet/telnetd/telnetd.c b/src/appl/telnet/telnetd/telnetd.c index 8dbdaef3a..4c1ca21e0 100644 --- a/src/appl/telnet/telnetd/telnetd.c +++ b/src/appl/telnet/telnetd/telnetd.c @@ -69,6 +69,10 @@ struct socket_security ss; # endif /* SO_SEC_MULTI */ #endif /* _SC_CRAY_SECURE_SYS */ +#ifdef KRB5 +#include "krb5.h" +#endif + #if defined(AUTHENTICATION) #include int auth_level = 0; @@ -342,9 +346,11 @@ main(argc, argv) #ifdef KRB5 case 'R': { - extern char *krb5_override_default_realm; - - krb5_override_default_realm = optarg; + extern krb5_context telnet_context; + + if (telnet_context == 0) + krb5_init_context(&telnet_context); + krb5_set_default_realm(telnet_context, optarg); break; } #endif /* KRB5 */ -- 2.26.2