Back to product page

CryptoInformationEvent event


Fires when wodSSH.NET receives information about remote server.

Syntax

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

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

Remarks

CryptoInformation event is fired before you are actually logged in, and before any local information about login and password are sent to the server. At this point, you can decide whether you will accept this connection, or disable it (because wrong algorithms were selected etc...). If you want to close the connection, set Args.Accept property to False.

Platforms

Windows