diff options
author | Werner Koch <[email protected]> | 2020-08-10 08:01:03 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-08-10 08:22:42 +0000 |
commit | bb096905b9ee1f5175efee1ab6c98045a26a2678 (patch) | |
tree | f7d44f717d0cb5657b92a92ce517ab583ddd5895 /agent/command-ssh.c | |
parent | gpg: Fix trustdb for v5key. (diff) | |
download | gnupg-bb096905b9ee1f5175efee1ab6c98045a26a2678.tar.gz gnupg-bb096905b9ee1f5175efee1ab6c98045a26a2678.zip |
agent: Add option --pss to pksign to be used by smartcards.
* agent/command.c (cmd_sethash): Add option --pss and allow for
--hash=null.
* agent/agent.h (struct server_control_s): Add digest.is_pss and
zero where needed.
* agent/pksign.c (agent_pksign_do): Allow for PSS with cards.
* scd/command.c (cmd_pksign): Add for --hash=none.
--
This is not a full implementaion of PSS but allows scdaemon card
drivers to detect already PSS formatted data.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r-- | agent/command-ssh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c index 5e3ce4c39..664bd0d30 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -2790,6 +2790,7 @@ ssh_handler_sign_request (ctrl_t ctrl, estream_t request, estream_t response) ctrl->digest.algo = hash_algo; xfree (ctrl->digest.data); ctrl->digest.data = NULL; + ctrl->digest.is_pss = 0; if ((spec.flags & SPEC_FLAG_USE_PKCS1V2)) ctrl->digest.raw_value = 0; else |