Discuss this help topic in SecureBlackbox Forum

TElSSHLocalPortForwarding.OnConnectionSocksAuthPassword

TElSSHLocalPortForwarding     See also     


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


This event is fired before SOCKS authentication.

Declaration

[C#]
    event TSBSSHSocksAuthPasswordEvent OnConnectionSocksAuthPassword;
    delegate void TSBSSHSocksAuthPasswordEvent(Object Sender, TElSSHForwardedConnection Conn, string Username, string Password, ref bool Accept);

[VB.NET]
    Event OnConnectionSocksAuthPassword As TSBSSHSocksAuthPasswordEvent
    Delegate Sub TSBSSHSocksAuthPasswordEvent(ByVal Sender As Object, ByVal Conn As TElSSHForwardedConnection, ByVal Username As String, ByVal Password As String, ByRef Accept As Boolean)

[Pascal]
    property OnConnectionSocksAuthPassword : TSBSSHSocksAuthPasswordEvent;
    TSBSSHSocksAuthPasswordEvent = procedure(Sender: TObject; Conn : TElSSHForwardedConnection; const Username : string; const Password : string; var Accept : boolean) of object;

[C++]
    void get_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocksAuthPasswordEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHForwardedConnectionHandle Conn, const char * pcUsername, int32_t szUsername, const char * pcPassword, int32_t szPassword, int8_t &Accept);

[PHP]
    TSBSSHSocksAuthPasswordEvent|callable|NULL get_OnConnectionSocksAuthPassword()
    void set_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent|callable|NULL $Value)
    callable TSBSSHSocksAuthPasswordEvent(TObject $Sender, TElSSHForwardedConnection $Conn, string $Username, string $Password, bool &$Accept)

[Java]
    TSBSSHSocksAuthPasswordEvent getOnConnectionSocksAuthPassword();
    void setOnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent Value);
    TSBSSHSocksAuthPasswordEvent.Callback OnConnectionSocksAuthPassword = new TSBSSHSocksAuthPasswordEvent.Callback() {
        public void TSBSSHSocksAuthPasswordEventCallback(TObject Sender, TElSSHForwardedConnection Conn, String Username, String Password, TSBBoolean Accept) {
            //...
        }
    }

Parameters

  • Conn - forwarded connection
  • Username - specifies username
  • Password - specifies password
  • Accept - set this parameter to True if username and password are correct
  • pcUsername - specifies username
  • szUsername - the length of pcUsername.
  • pcPassword - specifies password
  • szPassword - the length of pcPassword.

Description

    If dynamic forwarding is used this event is fired when username and password are provided for SOCKS authentication. User can accept or decline the connection.

Discuss this help topic in SecureBlackbox Forum