SSHCustomAuth Event

Fired when the class is doing custom authentication.

Syntax

ANSI (Cross Platform)
virtual int FireSSHCustomAuth(SCPSSHCustomAuthEventParams *e);
typedef struct {
char *Packet; int reserved; } SCPSSHCustomAuthEventParams; Unicode (Windows) virtual INT FireSSHCustomAuth(SCPSSHCustomAuthEventParams *e);
typedef struct {
LPWSTR Packet; INT reserved; } SCPSSHCustomAuthEventParams;
- (void)onSSHCustomAuth:(NSString**)packet;
#define EID_SCP_SSHCUSTOMAUTH 7

virtual INT IPWORKSSSH_CALL FireSSHCustomAuth(LPSTR &lpszPacket);

Remarks

SSHCustomAuth is fired during the user authentication stage of the SSH logon process if SSHAuthMode is set to amCustom. Packet contains the raw last SSH packet sent by the server, in HEX-encoded format.

The client should create a new raw SSH packet to send to the server and set Packet to the HEX-encoded representation of the packet to send.

In all cases, Packet will start with the message type field.

To read the incoming packet call DecodePacket and then use the GetSSHParam and GetSSHParamBytes methods. To create a packet use the SetSSHParam method and then call EncodePacket to obtain a HEX-encoded value and assign this to the Packet parameter.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 C++ Edition - Version 20.0 [Build 8501]