mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Re-introduce --enable-extended-key-format.
* agent/gpg-agent.c (oEnableExtendedKeyFormat): Re-introduce. (parse_rereadable_options): Handle it in a special way. * agent/protect.c (agent_protect): Be safe and set use_ocb only to 1 or 0. * tools/gpgconf-comp.c: Add --enable-extended-key-format again. -- This is required for backward compatible with profiles. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
72feb8fa82
commit
91ae3e7fb6
5 changed files with 27 additions and 10 deletions
|
@ -113,6 +113,7 @@ enum cmd_and_opt_values
|
|||
oMaxPassphraseDays,
|
||||
oEnablePassphraseHistory,
|
||||
oDisableExtendedKeyFormat,
|
||||
oEnableExtendedKeyFormat,
|
||||
oUseStandardSocket,
|
||||
oNoUseStandardSocket,
|
||||
oExtraSocket,
|
||||
|
@ -254,6 +255,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
#endif
|
||||
),
|
||||
ARGPARSE_s_n (oDisableExtendedKeyFormat, "disable-extended-key-format", "@"),
|
||||
ARGPARSE_s_n (oEnableExtendedKeyFormat, "enable-extended-key-format", "@"),
|
||||
|
||||
ARGPARSE_s_u (oS2KCount, "s2k-count", "@"),
|
||||
ARGPARSE_s_u (oS2KCalibration, "s2k-calibration", "@"),
|
||||
|
@ -268,7 +270,6 @@ static ARGPARSE_OPTS opts[] = {
|
|||
ARGPARSE_s_n (oNoUseStandardSocket, "no-use-standard-socket", "@"),
|
||||
|
||||
/* Dummy options. */
|
||||
ARGPARSE_s_n (oNoop, "enable-extended-key-format", "@"),
|
||||
|
||||
|
||||
ARGPARSE_end () /* End of list */
|
||||
|
@ -906,7 +907,13 @@ parse_rereadable_options (ARGPARSE_ARGS *pargs, int reread)
|
|||
opt.enable_passphrase_history = 1;
|
||||
break;
|
||||
|
||||
case oDisableExtendedKeyFormat: opt.enable_extended_key_format = 0; break;
|
||||
case oEnableExtendedKeyFormat:
|
||||
opt.enable_extended_key_format = 2;
|
||||
break;
|
||||
case oDisableExtendedKeyFormat:
|
||||
if (opt.enable_extended_key_format != 2)
|
||||
opt.enable_extended_key_format = 0;
|
||||
break;
|
||||
|
||||
case oIgnoreCacheForSigning: opt.ignore_cache_for_signing = 1; break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue