diff options
author | 1999-07-20 12:50:33 +0000 | |
---|---|---|
committer | 1999-07-20 12:50:33 +0000 | |
commit | 80853070f5f413d73c4c8fae05bd870994e56292 (patch) | |
tree | b8d7138d328460d67645daa2a91b51ec15b0e466 | |
parent | mention the skey command and Xr skey(1) (diff) | |
download | wireguard-openbsd-80853070f5f413d73c4c8fae05bd870994e56292.tar.xz wireguard-openbsd-80853070f5f413d73c4c8fae05bd870994e56292.zip |
skey help; freebsd
-rw-r--r-- | usr.bin/telnet/commands.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 73a1779cb2c..2f99dadd40f 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.20 1999/01/04 07:55:05 art Exp $ */ +/* $OpenBSD: commands.c,v 1.21 1999/07/20 12:50:33 deraadt Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -70,7 +70,7 @@ skey_calc(argc, argv) int status; if(argc != 3) { - printf("%s sequence challenge\n", argv[0]); + printf("usage: %s sequence challenge\n", argv[0]); return 0; } @@ -2665,6 +2665,9 @@ static char encrypthelp[] = "turn on (off) encryption ('encrypt ?' for more)", #endif zhelp[] = "suspend telnet", +#ifdef SKEY + skeyhelp[] = "compute response to s/key challenge", +#endif shellhelp[] = "invoke a subshell", envhelp[] = "change environment variables ('environ ?' for more)", modestring[] = "try to enter line or character mode ('mode ?' for more)"; @@ -2703,7 +2706,7 @@ static Command cmdtab[] = { { "environ", envhelp, env_cmd, 0 }, { "?", helphelp, help, 0 }, #if defined(SKEY) - { "skey", NULL, skey_calc, 0 }, + { "skey", skeyhelp, skey_calc, 0 }, #endif { 0, 0, 0, 0 } }; |