PassphraseNeeded Event
Requests a data protection password from the application.
Syntax
ANSI (Cross Platform) virtual int FirePassphraseNeeded(PGPReaderPassphraseNeededEventParams *e);
typedef struct {
char *Passphrase;
int Skip; int reserved; } PGPReaderPassphraseNeededEventParams; Unicode (Windows) virtual INT FirePassphraseNeeded(PGPReaderPassphraseNeededEventParams *e);
typedef struct {
LPWSTR Passphrase;
BOOL Skip; INT reserved; } PGPReaderPassphraseNeededEventParams;
- (void)onPassphraseNeeded:(NSString**)passphrase :(int*)skip;
#define EID_PGPREADER_PASSPHRASENEEDED 8 virtual INT SECUREBLACKBOX_CALL FirePassphraseNeeded(LPSTR &lpszPassphrase, BOOL &bSkip);
Remarks
The class fires this event to request a decryption password. It is only fired if the data can be decrypted without a key.
The event is fired in a loop until the correct password is passed or the number of password attempts is exceeded.