Back to product page

CryptoInformation method


Fires before wodSFTP establishes an encrypted connection with the server.

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 IwodSFTPNotify.
OwnerA wodSFTPCom object.
ProtocolA String value. Specifies selected protocol (SSH2 is the only possibility in SFTP protocol).
RemoteNameA String value. Holds the remote identification string.
SCcipherA String value. Holds the selected server to client encryption algorithm.
CScipherA String value. Holds the selected client to server encryption algorithm.
KeysA String value. Holds key exchange algorithm selected.
AcceptA Boolean value. When set to False, wodSFTP aborts connection.

Remarks

This method is only called if you implemented the IwodSFTPNotify interface in your application and the wodSFTP.Notification property has received a reference to an 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 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 wodSFTP will drop the connection.

Platforms

Windows