EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Handling Cancel in pgpReaderKeyPassphrase

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
Posted: 11/16/2006 21:50:36
by John Bannister (Standard support level)
Joined: 11/16/2006
Posts: 3


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.


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.



Topic viewed 2526 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!