EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Handling Cancel in pgpReaderKeyPassphrase

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#1691
Posted: 11/16/2006 21:50:36
by John Bannister (Standard support level)
Joined: 11/16/2006
Posts: 3

Hi

What is the correct way to handle the returned Cancel, if true, in

pgpReaderKeyPassphrase(Sender: TObject;
Key: TElPGPCustomSecretKey; var Passphrase: String; var Cancel: Boolean);

The sample programs just throw an error.

Thanks

John
#1693
Posted: 11/17/2006 01:25:14
by Ken Ivanov (EldoS Corp.)

The OnKeyPassphrase event is fired consequently until either correct passphrase is passed or Cancel parameter is set to true. If you set Cancel parameter to true (and the passphrase is incorrect), the 'No key for decryption found' exception is thrown by ElPGPReader object and no further data processing is performed.

Reply

Statistics

Topic viewed 2391 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!