From ab90a0026467868d39274dc17775a012879c7bd8 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 25 Sep 2001 03:06:46 +0000 Subject: 15866: complete v2 ciphers after -o Ciphers=, protocols after -o Protocol= --- ChangeLog | 6 ++++++ Completion/Unix/Command/_ssh | 21 ++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53eb3079c..6e7babeca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-09-25 Clint Adams + + * 15866: Completion/Unix/Command/_ssh: + complete v2 ciphers after -o Ciphers=, + complete protocol numbers after -o Protocol. + 2001-09-24 Bart Schaefer * 15864: Doc/Zsh/params.yo: Document that assignment to TERM diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh index 6936173f4..40664114c 100644 --- a/Completion/Unix/Command/_ssh +++ b/Completion/Unix/Command/_ssh @@ -67,6 +67,20 @@ _ssh () { *(#i)(batchmode|compression|fallbacktorsh|forward(agent|x11)|keepalive|passwordauthentication|rhosts(|rsa)authentication|rsaauthentication|usersh|kerberos(authetication|tgtparsing)|useprivileged)*) _wanted values expl 'truth value' compadd yes no && ret=0 ;; + *(#i)ciphers*) + _values -s , 'encryption cipher' \ + 'aes128-cbc' \ + '3des-cbc' \ + 'blowfish-cbc' \ + 'cast128-cbc' \ + 'arcfour' \ + 'aes192-cbc' \ + 'aes256-cbc' \ + 'rijndael128-cbc' \ + 'rijndael192-cbc' \ + 'rijndael256-cbc' \ + 'rijndael-cbc@lysator.liu.se' && ret=0 + ;; *(#i)cipher*) _wanted values expl 'encryption cipher' \ compadd idea des 3des blowfish arcfour tss none && ret=0 @@ -85,6 +99,11 @@ _ssh () { *(#i)(local|remote)forward*) state=forward ;; + *(#i)protocol*) + _values -s , 'protocol version' \ + '1' \ + '2' && ret=0 + ;; *(#i)proxycommand*) compset -q shift 1 words @@ -109,7 +128,7 @@ _ssh () { else _wanted values expl 'configure file option' \ compadd -M 'm:{a-z}={A-Z}' -S '=' - \ - BatchMode ClearAllForwardings Cipher Compression \ + BatchMode ClearAllForwardings Cipher Ciphers Compression \ CompressionLevel Host ConnectionAttempts EscapeChar \ FallBackToRsh ForwardAgent ForwardX11 \ GlobalKnownHostsFile HostName IdentityFile KeepAlive \ -- cgit 1.4.1