zsh-workers
 help / color / mirror / code / Atom feed
From: Aaron Schrab <aaron@schrab.com>
To: zsh-workers@zsh.org
Subject: [PATCH 3/3] Complete SSL options for telnet-ssl
Date: Wed, 22 Aug 2012 19:18:39 -0400	[thread overview]
Message-ID: <1345677519-1237-3-git-send-email-aaron@schrab.com> (raw)
In-Reply-To: <1345677519-1237-1-git-send-email-aaron@schrab.com>

Options supported by the telnet command as shipped by Debian/Ubuntu
telnet-ssl package.
---
 Completion/Unix/Command/_telnet |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/Completion/Unix/Command/_telnet b/Completion/Unix/Command/_telnet
index 81ccfa4..c7ab34f 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 \
-- 
1.7.10.4


      parent reply	other threads:[~2012-08-22 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-22 23:18 [PATCH 1/3] Complete telnet options for forcing IP version Aaron Schrab
2012-08-22 23:18 ` [PATCH 2/3] Complete telnet -b option Aaron Schrab
2012-08-22 23:18 ` Aaron Schrab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1345677519-1237-3-git-send-email-aaron@schrab.com \
    --to=aaron@schrab.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).