aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-24 14:31:24 +0000
committerWerner Koch <[email protected]>2024-06-24 14:31:40 +0000
commit1695cf267edf85bc451b59bf012083feb250bf59 (patch)
treecbd9cddb3b17e25106143ec02aaa3bf7ec705ceb /g10/options.h
parentgpg: Rename recently added import option no-seckeys to only-pubkeys. (diff)
downloadgnupg-1695cf267edf85bc451b59bf012083feb250bf59.tar.gz
gnupg-1695cf267edf85bc451b59bf012083feb250bf59.zip
gpg: New option --show-only-session-key
* g10/options.h (opt): Add show_only_session_key and turn show_session_key into a bit flag. * g10/gpg.c (oShowOnlySessionKey): New. (opts): Add "show-only-session-key". (main): Set flag. * g10/mainproc.c (proc_encrypted): Handle the new option. * g10/decrypt-data.c (decrypt_data): Ditto. Add compliance error flag to the DECRYPTION_INFO status line. -- This new option is somehow related to GnuPG-bug-id: 1825
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h
index 02c49c4e5..5168a788f 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -234,7 +234,8 @@ struct
int ignore_expiration;
int command_fd;
const char *override_session_key;
- int show_session_key;
+ unsigned int show_session_key:1;
+ unsigned int show_only_session_key:1;
const char *gpg_agent_info;
int try_all_secrets;