From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18258 invoked by alias); 22 Aug 2012 23:23:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30636 Received: (qmail 4764 invoked from network); 22 Aug 2012 23:23:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at schrab.com designates 209.177.157.228 as permitted sender) From: Aaron Schrab To: zsh-workers@zsh.org Subject: [PATCH 3/3] Complete SSL options for telnet-ssl Date: Wed, 22 Aug 2012 19:18:39 -0400 Message-Id: <1345677519-1237-3-git-send-email-aaron@schrab.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1345677519-1237-1-git-send-email-aaron@schrab.com> References: <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