about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2015-08-05 20:41:14 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-08-05 23:38:21 +0200
commit2fc05d522fa2bf4cab0ebe57bee02093ba6b1382 (patch)
tree9493ea081f5b7ece81cb3ffa22b0735e390230ea
parentfb0b6483a08300e6d72e6079d0e402603f73255d (diff)
downloadzsh-2fc05d522fa2bf4cab0ebe57bee02093ba6b1382.tar.gz
zsh-2fc05d522fa2bf4cab0ebe57bee02093ba6b1382.tar.xz
zsh-2fc05d522fa2bf4cab0ebe57bee02093ba6b1382.zip
35991: _ssh: add ssh option FingerprintHash
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_ssh5
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c39e3bb3f..337a1f31f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,9 @@
 	* unposted: Completion/Unix/Command/_ssh: use -q for the
 	option suffix
 
+	* Christian Hesse: 35991: Completion/Unix/Command/_ssh: add ssh
+	option FingerprintHash
+
 2015-08-05  Oliver Kiddle <opk@zsh.org>
 
 	* Eric Cook: 35973: Completion/BSD/Command/_systat,
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index fb8fe57b0..b7b7e41dc 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -219,6 +219,10 @@ _ssh () {
           _message -e 'escape character (or `none'\'')'
           ret=0
           ;;
+        (#i)fingerprinthash=*)
+          _values 'fingerprint hash algorithm' \
+              md5 ripemd160 sha1 sha256 sha384 sha512 && ret=0
+          ;;
         (#i)forwardx11timeout=*)
           _message -e 'timeout'
           ret=0
@@ -408,6 +412,7 @@ _ssh () {
                 EnableSSHKeysign \
                 EscapeChar \
                 ExitOnForwardFailure \
+                FingerprintHash \
                 ForwardAgent \
                 ForwardX11 \
                 ForwardX11Timeout \