Don't use krb5_override_default_realm, as it is obsolete
authorTheodore Tso <tytso@mit.edu>
Sat, 22 Apr 1995 04:55:11 +0000 (04:55 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 22 Apr 1995 04:55:11 +0000 (04:55 +0000)
(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
src/appl/telnet/telnetd/telnetd.c

index cb49fd2f27f74711518352fc071d90dfbf590c6c..4eb854f97c515f19eb8c83d6b62b979ebca03bda 100644 (file)
@@ -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  <eichin@cygnus.com>
 
        From Ian Taylor <ian@cygnus.com>.
index 8dbdaef3adb0888199184db3efeaf4d2506ab7e7..4c1ca21e0f667df14d867ae679dba5c5d1f8109f 100644 (file)
@@ -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 <libtelnet/auth.h>
 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 */