mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: New option --no-symkey-cache.
* g10/gpg.c (oNoSymkeyCache): New. (opts): Add that option. (main): Set var. * g10/options.h (struct opt): New field no_symkey_cache. * g10/passphrase.c (passphrase_to_dek): Implement that feature. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9f69dbeb90
commit
789d240cb4
5 changed files with 22 additions and 2 deletions
|
@ -317,6 +317,9 @@ passphrase_to_dek (int cipher_algo, STRING2KEY *s2k,
|
|||
canceled = &dummy_canceled;
|
||||
*canceled = 0;
|
||||
|
||||
if (opt.no_symkey_cache)
|
||||
nocache = 1; /* Force no symmtric key caching. */
|
||||
|
||||
if ( !s2k )
|
||||
{
|
||||
log_assert (create && !nocache);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue