Back to product page

CryptoInformation method


Called when wodSSH provides information about selected algorithms.

Type

None

Syntax

  • Basic
object.CryptoInformation Owner, Protocol, RemoteName, SCcipher, CScipher, Keys, Accept
The CryptoInformation(object,Owner,Protocol,RemoteName,SCcipher,CScipher,Keys,Accept) syntax has these parts:
objectAn expression evaluating to an object of type IwodSSHNotify.
OwnerA wodSSHCom object.
ProtocolA String value. Specifies selected protocol (SSH1 or SSH2).
RemoteNameA String value. Holds remote identification string.
SCcipherA String value. Holds server to client encryption algorithm selected.
CScipherA String value. Holds client to server encryption algorithm selected.
KeysA String value. Holds key exchange protocol selected.
AcceptA Boolean value. When set to False, wodSSH aborts connection.

Remarks

This method is called only if you implemented the IwodSSHNotify interface in your application, and the wodSSH.Notification property has received a reference to the instance of your implementation.

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

At this point you can decide whether to continue with the connection or to abort it (by setting the Accept parameter to False) in which case wodSSH will drop the connection.

Platforms

Windows