SecureBlackbox 2020 C++ Edition

Questions / Feedback?

PasswordNeeded Event

This event is fired when a decryption password is needed.

Syntax

ANSI (Cross Platform)
virtual int FirePasswordNeeded(CryptoKeyManagerPasswordNeededEventParams *e);
typedef struct {
const char *NeededFor;
char *Password;
int Cancel; int reserved; } CryptoKeyManagerPasswordNeededEventParams; Unicode (Windows) virtual INT FirePasswordNeeded(CryptoKeyManagerPasswordNeededEventParams *e);
typedef struct {
LPCWSTR NeededFor;
LPWSTR Password;
BOOL Cancel; INT reserved; } CryptoKeyManagerPasswordNeededEventParams;
- (void)onPasswordNeeded:(NSString*)neededFor :(NSString**)password :(int*)cancel;
#define EID_CRYPTOKEYMANAGER_PASSWORDNEEDED 3

virtual INT SECUREBLACKBOX_CALL FirePasswordNeeded(LPSTR &lpszNeededFor, LPSTR &lpszPassword, BOOL &bCancel);

Remarks

The class fires this event when a password is needed to decrypt a certificate or a private key.

In the handler of this event, assign the password to the Password parameter, or set Cancel to true to abort the operation.

The NeededFor parameter identifies the certificate for which the password is requested.

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