UnknownKeyReceived Event
This event is fired when an unknown SSH key is received from the server.
Syntax
class SSHClientUnknownKeyReceivedEventParams { public: int Algorithm(); int Bits(); const QString &FingerprintSHA256(); int Action(); void SetAction(int iAction); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void UnknownKeyReceived(SSHClientUnknownKeyReceivedEventParams *e);
// Or, subclass SSHClient and override this emitter function. virtual int FireUnknownKeyReceived(SSHClientUnknownKeyReceivedEventParams *e) {...}
Remarks
This event allows to check the fingerprint of the key received from the server, in case the key is not in the list of known keys. Algorithm and Bits specify the key algorithm and the number of bits. FingerprintSHA256 contains the key's fingerprint.
Use Action to tell the class what it should do with the key.