Back to product page

CryptoInformationEvent event


Fires before wodSFTP established encrypted connection with the server.

Syntax

  • C#
  • VB.NET
delegate void CryptoInformationDelegate(object Sender, CryptoInformationArgs Args);
The CryptoInformationEvent(Args.Protocol,Args.RemoteName,Args.SCcipher,Args.CScipher,Args.SCmac,Args.CSmac,Args.Keys,Args.Accept) syntax has these parts:
Args.ProtocolString. Specifies selected protocol (SSH2 is the only possibility in SFTP protocol).
Args.RemoteNameString. Holds remote identification string.
Args.SCcipherString. Holds server to client encryption algorithm selected.
Args.CScipherString. Holds client to server encryption algorithm selected.
Args.SCmacString. Holds server to client digest algorithm selected.
Args.CSmacString. Holds client to server digest algorithm selected.
Args.KeysString. Holds key exchange algorithm selected.
Args.AcceptBoolean. When set to False, wodSFTP.NET aborts connection.

Delegate Sub CryptoInformationDelegate(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.CryptoInformationArgs)
The CryptoInformationEvent(Args.Protocol,Args.RemoteName,Args.SCcipher,Args.CScipher,Args.SCmac,Args.CSmac,Args.Keys,Args.Accept) syntax has these parts:
Args.ProtocolString. Specifies selected protocol (SSH2 is the only possibility in SFTP protocol).
Args.RemoteNameString. Holds remote identification string.
Args.SCcipherString. Holds server to client encryption algorithm selected.
Args.CScipherString. Holds client to server encryption algorithm selected.
Args.SCmacString. Holds server to client digest algorithm selected.
Args.CSmacString. Holds client to server digest algorithm selected.
Args.KeysString. Holds key exchange algorithm selected.
Args.AcceptBoolean. When set to False, wodSFTP.NET aborts connection.

Remarks

CryptoInformation event is fired after the first crypto negotiation has taken place, but before any sensitive information is sent to server (such as username or password). This event provides you with information about selected encryption protocols and remote server type.

At this point you can decide if you want to continue with the connection, or you want to abort it (by setting Accept parameter to False) in which case wodSFTP.NET will drop the connection.

Platforms

Windows