Discuss this help topic in SecureBlackbox Forum

TElSSHCustomForwarding.OnKeyValidate

TElSSHCustomForwarding     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event if fired when the server's public key is received and must be validated.

Declaration

[C#/Java]
    event TSSHKeyValidateEvent OnKeyValidate;
    delegate void TSSHKeyValidateEvent(Object Sender, TElSSHKey ServerKey, ref bool Validate);

[VB.NET]
    Event OnKeyValidate As TSSHKeyValidateEvent
    Delegate Sub TSSHKeyValidateEvent(ByVal Sender As Object, ByVal ServerKey As TElSSHKey, ByRef Validate As Boolean)

[Pascal]
    property OnKeyValidate : TSSHKeyValidateEvent;
    TSSHKeyValidateEvent = procedure (Sender: TObject; ServerKey : TElSSHKey; var Validate : boolean) of object;

[C++]
    void get_OnKeyValidate(TSSHKeyValidateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyValidate(TSSHKeyValidateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHKeyValidateEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHKeyHandle ServerKey, int8_t &Validate);

[PHP]
    TSSHKeyValidateEvent|callable|NULL get_OnKeyValidate()
    void set_OnKeyValidate(TSSHKeyValidateEvent|callable|NULL $Value)
    callable TSSHKeyValidateEvent(TObject $Sender, TElSSHKey $ServerKey, bool &$Validate)

Parameters

  • ServerKey - Server's public key
  • Validate - Set this value according to the result of key validation

Description

    Handle this event to validate the server's public keys. Usually, known servers are identified by their public keys. Each server has a corresponding public key.

TElSimpleSSHClient will close the connection if you pass the False value in the Validate parameter.

See also:     TElSSHKey    

Discuss this help topic in SecureBlackbox Forum