summaryrefslogtreecommitdiff
path: root/src/usage_text.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-16 19:34:06 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-05-16 19:43:11 +0900
commitc26da096875d609b354ea5989f62af662f9c609e (patch)
tree2e9e4a1279d0b325aed7dc960f39ab770e5efbce /src/usage_text.h
parent4273885f1677579675f71667d933bd308a020fdd (diff)
Add --ssh-host-key-md option
Set checksum for SSH host public key. Use same syntax with --checksum option. TYPE is hash type. The supported hash type is sha-1 or md5. DIGEST is hex digest. For example: sha-1=b030503d4de4539dc7885e6f0f5e256704edf4c3. This option can be used to validate server's public key when SFTP is used. If this option is not set, which is default, no validation takes place.
Diffstat (limited to 'src/usage_text.h')
-rw-r--r--src/usage_text.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usage_text.h b/src/usage_text.h
index 64f64a43..d595c233 100644
--- a/src/usage_text.h
+++ b/src/usage_text.h
@@ -1030,3 +1030,13 @@
" If true is given, deny legacy BitTorrent\n" \
" handshake and only use Obfuscation handshake and\n" \
" always encrypt message payload.")
+#define TEXT_SSH_HOST_KEY_MD \
+ _(" --ssh-host-key-md=TYPE=DIGEST\n" \
+ " Set checksum for SSH host public key. TYPE is\n" \
+ " hash type. The supported hash type is sha-1 or\n" \
+ " md5. DIGEST is hex digest. For example:\n" \
+ " sha-1=b030503d4de4539dc7885e6f0f5e256704edf4c3\n" \
+ " This option can be used to validate server's\n" \
+ " public key when SFTP is used. If this option is\n" \
+ " not set, which is default, no validation takes\n" \
+ " place.")