SecureBlackbox 2020 C++ Edition

Questions / Feedback?

UnknownKeyReceived Event

This event is fired when an unknown SSH key is received from the server.

Syntax

ANSI (Cross Platform)
virtual int FireUnknownKeyReceived(SSHClientUnknownKeyReceivedEventParams *e);
typedef struct {
int Algorithm;
int Bits;
const char *FingerprintSHA256;
int Action; int reserved; } SSHClientUnknownKeyReceivedEventParams; Unicode (Windows) virtual INT FireUnknownKeyReceived(SSHClientUnknownKeyReceivedEventParams *e);
typedef struct {
INT Algorithm;
INT Bits;
LPCWSTR FingerprintSHA256;
INT Action; INT reserved; } SSHClientUnknownKeyReceivedEventParams;
- (void)onUnknownKeyReceived:(int)algorithm :(int)bits :(NSString*)fingerprintSHA256 :(int*)action;
#define EID_SSHCLIENT_UNKNOWNKEYRECEIVED 17

virtual INT SECUREBLACKBOX_CALL FireUnknownKeyReceived(INT &iAlgorithm, INT &iBits, LPSTR &lpszFingerprintSHA256, INT &iAction);

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.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]