PrivateKeyNeeded Event
Asks the application for the client's private key.
Syntax
ANSI (Cross Platform) virtual int FirePrivateKeyNeeded(SFTPClientPrivateKeyNeededEventParams *e);
typedef struct {
int Skip; int reserved; } SFTPClientPrivateKeyNeededEventParams; Unicode (Windows) virtual INT FirePrivateKeyNeeded(SFTPClientPrivateKeyNeededEventParams *e);
typedef struct {
BOOL Skip; INT reserved; } SFTPClientPrivateKeyNeededEventParams;
- (void)onPrivateKeyNeeded:(int*)skip;
#define EID_SFTPCLIENT_PRIVATEKEYNEEDED 14 virtual INT SECUREBLACKBOXLITE_CALL FirePrivateKeyNeeded(BOOL &bSkip);
Remarks
The class fires this event if the public key provided in Key was accepted by the server, but no private key is available for it.
Use this event handler to attach the private key to your Key. The component will pick the key up and continue the authentication.