Differences
This shows you the differences between the selected revisions of the page.
2017-12-05 | 2018-01-16 | ||
removing unneeded byval (martin) | 5.12 Session.ScanFingerprint has a new mandatory algorithm parameter. (martin) | ||
Line 4: | Line 4: | ||
===== Syntax ===== | ===== Syntax ===== | ||
<code csharp *> | <code csharp *> | ||
- | public string ScanFingerprint(SessionOptions sessionOptions) | + | public string ScanFingerprint( |
+ | ····SessionOptions sessionOptions, | ||
+ | string algorithm | ||
+ | ) | ||
</code> | </code> | ||
<code vbnet *> | <code vbnet *> | ||
- | Public Function ScanFingerprint(sessionOptions As SessionOptions) As String | + | Public Function ScanFingerprint( |
+ | ····sessionOptions As SessionOptions, | ||
+ | algorithm As String | ||
+ | ) As String | ||
</code> | </code> | ||
Line 14: | Line 20: | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
| [[library_sessionoptions|SessionOptions]] sessionOptions | Defines a server to scan the fingerprint of. \\ The ''[[library_sessionoptions#protocol|Protocol]]'' property must be ''Protocol.Sftp'' or ''Protocol.Scp'', or ''Protocol.Ftp'' with ''[[library_sessionoptions#ftpsecure|FtpSecure]]'' being ''FtpSecure.Implicit'' or ''FtpSecure.Explicit'', or ''Protocol.Webdav'' with ''[[library_sessionoptions#webdavsecure|WebdavSecure]]'' being true. Other than that only the ''[[library_sessionoptions#hostname|HostName]]'' needs to be set. The ''[[library_sessionoptions#portnumber|PortNumber]]'', ''[[library_sessionoptions#timeout|Timeout]]'' and few [[rawsettings|raw session settings]] can be set, if necessary. The other properties are ignored. | | | [[library_sessionoptions|SessionOptions]] sessionOptions | Defines a server to scan the fingerprint of. \\ The ''[[library_sessionoptions#protocol|Protocol]]'' property must be ''Protocol.Sftp'' or ''Protocol.Scp'', or ''Protocol.Ftp'' with ''[[library_sessionoptions#ftpsecure|FtpSecure]]'' being ''FtpSecure.Implicit'' or ''FtpSecure.Explicit'', or ''Protocol.Webdav'' with ''[[library_sessionoptions#webdavsecure|WebdavSecure]]'' being true. Other than that only the ''[[library_sessionoptions#hostname|HostName]]'' needs to be set. The ''[[library_sessionoptions#portnumber|PortNumber]]'', ''[[library_sessionoptions#timeout|Timeout]]'' and few [[rawsettings|raw session settings]] can be set, if necessary. The other properties are ignored. | | ||
+ | | string algorithm | Fingerprint algorithm to use. \\ Supported algorithms are ''SHA-256'' (recommended with [[SFTP]] and [[SCP]] protocols) and ''MD5'' (the only supported option with [[FTPS]] and [[webdav|WebDAVS]]. With ''%%SFTP%%'' and ''%%SCP%%'' protocols, it should be used only for backward compatibility with previous versions). \\ This parameter is present in the latest beta version only. &beta Previous versions lack the parameter and use ''%%MD5%%'' algorithm. | | ||
==== Return Value ==== | ==== Return Value ==== |