about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-08-23 09:10:12 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-08-23 09:10:12 +0000
commit32438824c0f92d64956c35a543ead4687f029ddb (patch)
treedd12246d23af67f3b3c3410fcbc65ca1bdee1b10 /Completion
parentfb7fceebea6e0f47c4eec0e75106be79cee1567f (diff)
downloadzsh-32438824c0f92d64956c35a543ead4687f029ddb.tar.gz
zsh-32438824c0f92d64956c35a543ead4687f029ddb.tar.xz
zsh-32438824c0f92d64956c35a543ead4687f029ddb.zip
Aaron Schrab: 30636: telnet-ssl option completion
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_telnet15
1 files changed, 15 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_telnet b/Completion/Unix/Command/_telnet
index 81ccfa4f8..c7ab34f98 100644
--- a/Completion/Unix/Command/_telnet
+++ b/Completion/Unix/Command/_telnet
@@ -38,6 +38,7 @@ if (( ! $+_telnet_args )); then
     '*\[-noasynch\]*' '-noasynch'
     '*\[-noasyncnet\]*' '-noasyncnet'
     '*\[-noasynctty\]*' '-noasynctty'
+    '*\[-z ssl\]*' '*-z[SSL parameters]:SSL parameter:->ssl'
   )
   _telnet_args=($optionmap[(K)"$help"])
   (( $#_telnet_args )) || _telnet_args=( '-l+[specify user]:user:->users' )
@@ -49,6 +50,20 @@ _arguments -C -s \
   ':port:->ports' && ret=0
 
 case "$state" in
+ssl)
+  _values -w 'SSL parameter' \
+    'debug[Send SSL debugging info to stderr]' \
+    '(nossl)ssl[Negotiate SSL connection]' \
+    '(ssl)nossl[Switch off SSL negotiation]' \
+    'certrequired[Require server certificate]' \
+    'secure[No fallback to unencrypted mode]' \
+    'verbose[Be verbose about certificates, etc.]' \
+    'verify[Set SSL verify flags]:int:' \
+    'cert[Specify certificate file]:certificate file:_path_files' \
+    'key[Specify key file]:key file:_path_files' \
+    'cipher[Set preferred cipher list]:ciphers:'
+  ;;
+
 hosts)
   _wanted hosts expl host \
       _combination -s '[@:]' '' users-hosts-ports \