aboutsummaryrefslogtreecommitdiffstats
path: root/agent/t-protect.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-03-13 07:49:49 +0000
committerWerner Koch <[email protected]>2023-03-13 07:53:50 +0000
commit6d792ae2eb46b3c411d36a87f0d08fbfc1b65cc9 (patch)
tree9ff0d23657cb62275d932e1aece6b1d2cfa0bb1d /agent/t-protect.c
parentdirmngr: Add command "GETINFO stats". (diff)
downloadgnupg-6d792ae2eb46b3c411d36a87f0d08fbfc1b65cc9.tar.gz
gnupg-6d792ae2eb46b3c411d36a87f0d08fbfc1b65cc9.zip
agent: Make --disable-extended-key-format a dummy option.
* agent/agent.h (opt): Remove enable_extended_key_format. * agent/gpg-agent.c (enum cmd_and_opt_values): Turn oDisableExtendedKeyFormat and oEnableExtendedKeyFormat into dummy options. * agent/protect.c (do_encryption): Remove arg use_ocb and corresponding code. (agent_protect): Ditto. Change all callers. * agent/findkey.c (agent_write_private_key): Simplify due to the removal of disable-extended-key-format. (write_extended_private_key): Fold into agent_write_private_key. -- This change is related to GnuPG-bug-id: 6386 but should have no visible effect except for the removal of option --disable-extended-key-format.
Diffstat (limited to 'agent/t-protect.c')
-rw-r--r--agent/t-protect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/t-protect.c b/agent/t-protect.c
index 88b552585..e6edbffba 100644
--- a/agent/t-protect.c
+++ b/agent/t-protect.c
@@ -196,7 +196,7 @@ test_agent_protect (void)
{
ret = agent_protect ((const unsigned char*)specs[i].key,
specs[i].passphrase,
- &specs[i].result, &specs[i].resultlen, 0, -1);
+ &specs[i].result, &specs[i].resultlen, 0);
if (gpg_err_code (ret) != specs[i].ret_expected)
{
printf ("agent_protect(%d) returned '%i/%s'; expected '%i/%s'\n",