Discuss this help topic in SecureBlackbox Forum

TElSSHClient.OnKeyValidate

TElSSHClient     See also     


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


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

Declaration

[C#]
    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)

[Java]
    not available

Parameters

  • ServerKey - Server's public key
  • Validate - Set this value according to 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.

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

See also:     TElSSHKey    

Discuss this help topic in SecureBlackbox Forum