diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-16 19:34:06 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-16 19:43:11 +0900 |
| commit | c26da096875d609b354ea5989f62af662f9c609e (patch) | |
| tree | 2e9e4a1279d0b325aed7dc960f39ab770e5efbce /src/SftpNegotiationCommand.h | |
| parent | 4273885f1677579675f71667d933bd308a020fdd (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/SftpNegotiationCommand.h')
| -rw-r--r-- | src/SftpNegotiationCommand.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SftpNegotiationCommand.h b/src/SftpNegotiationCommand.h index a6d1045c..3ce11d40 100644 --- a/src/SftpNegotiationCommand.h +++ b/src/SftpNegotiationCommand.h @@ -68,7 +68,10 @@ private: std::unique_ptr<AuthConfig> authConfig_; // remote file path std::string path_; - + // expected host's public key message digest: hash type and digest + // (raw binary value). + std::string hashType_; + std::string digest_; protected: virtual bool executeInternal() CXX11_OVERRIDE; |
