Discuss this help topic in SecureBlackbox Forum

TElSSHLocalPortForwarding.OnConnectionSocksAuthMethodChoose

TElSSHLocalPortForwarding     See also     


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


This event is fired when new incoming connection is accepted.

Declaration

[C#]
    event TSBSSHSocksAuthMethodChooseEvent OnConnectionSocksAuthMethodChoose;
    delegate void TSBSSHSocksAuthMethodChooseEvent(Object Sender, TElSSHForwardedConnection Conn, int32[] AuthMethods, ref TElSocksAuthentication AuthMethod, ref bool Cancel);

[VB.NET]
    Event OnConnectionSocksAuthMethodChoose As TSBSSHSocksAuthMethodChooseEvent
    Delegate Sub TSBSSHSocksAuthMethodChooseEvent(ByVal Sender As Object, ByVal Conn As TElSSHForwardedConnection, ByVal AuthMethods As Integer(), ByRef AuthMethod As TElSocksAuthentication, ByRef Cancel As Boolean)

[Pascal]
    property OnConnectionSocksAuthMethodChoose : TSBSSHSocksAuthMethodChooseEvent;
    TSBSSHSocksAuthMethodChooseEvent = procedure(Sender: TObject; Conn : TElSSHForwardedConnection; AuthMethods : array of TElSocksAuthentication; var AuthMethod : TElSocksAuthentication; var Cancel : Boolean) of object;

[C++]
    void get_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocksAuthMethodChooseEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHForwardedConnectionHandle Conn, const TElSocksAuthenticationRaw pAuthMethods[], int32_t szAuthMethods, TElSocksAuthenticationRaw &AuthMethod, int8_t &Cancel);

[PHP]
    TSBSSHSocksAuthMethodChooseEvent|callable|NULL get_OnConnectionSocksAuthMethodChoose()
    void set_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent|callable|NULL $Value)
    callable TSBSSHSocksAuthMethodChooseEvent(TObject $Sender, TElSSHForwardedConnection $Conn, array of integer $AuthMethods, integer &$AuthMethod, bool &$Cancel)

[Java]
    TSBSSHSocksAuthMethodChooseEvent getOnConnectionSocksAuthMethodChoose();
    void setOnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent Value);
    TSBSSHSocksAuthMethodChooseEvent.Callback OnConnectionSocksAuthMethodChoose = new TSBSSHSocksAuthMethodChooseEvent.Callback() {
        public void TSBSSHSocksAuthMethodChooseEventCallback(TObject Sender, TElSSHForwardedConnection Conn, int[] AuthMethods, int[] AuthMethod, TSBBoolean Cancel) {
            //...
        }
    }

Parameters

  • Conn - forwarded connection
  • AuthMethods - array of authentication methods supported
  • AuthMethod - use this parameter to specify the desired authentication method
  • Cancel - set this parameter to True to cancel authentication
  • pAuthMethods -
  • szAuthMethods - the length of pcAuthMethods.

Values:

Description

    This event is fired by TElSSHLocalPortForwarding in order to choose authentication method when new incoming SOCKS connection is accepted.

Discuss this help topic in SecureBlackbox Forum