summaryrefslogtreecommitdiffstats
path: root/usr.bin/rlogin/rlogin.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1994-09-26 09:22:08 +0000
committerdfr <dfr@FreeBSD.org>1994-09-26 09:22:08 +0000
commitca00f2df5ca41bca5f471b6f0eacae4485e94848 (patch)
tree7b09762d1aec85e89c52b751bbe06a76de5e0c7e /usr.bin/rlogin/rlogin.c
parent5a5794a15ded6fc55c5461698466ca2186b348c8 (diff)
downloadFreeBSD-src-ca00f2df5ca41bca5f471b6f0eacae4485e94848.zip
FreeBSD-src-ca00f2df5ca41bca5f471b6f0eacae4485e94848.tar.gz
Move the call to des_set_key to after the kerberos initialisation, removing
assumption about the implementation of des_read/des_write.
Diffstat (limited to 'usr.bin/rlogin/rlogin.c')
-rw-r--r--usr.bin/rlogin/rlogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c
index fac7ded..d9379c2 100644
--- a/usr.bin/rlogin/rlogin.c
+++ b/usr.bin/rlogin/rlogin.c
@@ -212,7 +212,6 @@ main(argc, argv)
#ifdef KERBEROS
case 'x':
doencrypt = 1;
- des_set_key(cred.session, schedule);
break;
#endif
#endif
@@ -295,10 +294,11 @@ try_connect:
dest_realm = krb_realmofhost(host);
#ifdef CRYPT
- if (doencrypt)
+ if (doencrypt) {
rem = krcmd_mutual(&host, sp->s_port, user, term, 0,
dest_realm, &cred, schedule);
- else
+ des_set_key(cred.session, schedule);
+ } else
#endif /* CRYPT */
rem = krcmd(&host, sp->s_port, user, term, 0,
dest_realm);
OpenPOWER on IntegriCloud