diff options
author | assar <assar@FreeBSD.org> | 2001-03-12 03:54:48 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-03-12 03:54:48 +0000 |
commit | c63261057ab6778a79507b7a5827cdfa72625d20 (patch) | |
tree | 4dd3ef60ba47506078b91d6c74a53f216fd5f36d /crypto/telnet | |
parent | a8f26efb45f4a0e3585948ebc99d60716d6c99a0 (diff) | |
download | FreeBSD-src-c63261057ab6778a79507b7a5827cdfa72625d20.zip FreeBSD-src-c63261057ab6778a79507b7a5827cdfa72625d20.tar.gz |
enable auto-negotiation of encrypt and decrypt
Diffstat (limited to 'crypto/telnet')
-rw-r--r-- | crypto/telnet/telnet/main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/telnet/telnet/main.c b/crypto/telnet/telnet/main.c index c3d0f5d..ce33785 100644 --- a/crypto/telnet/telnet/main.c +++ b/crypto/telnet/telnet/main.c @@ -284,6 +284,8 @@ main(argc, argv) break; case 'l': autologin = 1; + if(autologin == 0) + autologin = -1; user = optarg; break; case 'n': @@ -344,6 +346,17 @@ main(argc, argv) /* NOTREACHED */ } } + + if (autologin == -1) { /* esc@magic.fi; force */ +#if defined(AUTHENTICATION) + autologin = 1; +#endif +#if defined(ENCRYPTION) + encrypt_auto(1); + decrypt_auto(1); +#endif + } + if (autologin == -1) autologin = (rlogin == _POSIX_VDISABLE) ? 0 : 1; |