diff options
author | Werner Koch <[email protected]> | 2017-02-22 08:40:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-22 08:40:50 +0000 |
commit | 78d875a0f83bc046279b951aea76cd74f3c44fd8 (patch) | |
tree | 509767cdcabddb39dd9603813ff492d76f863929 /agent/pksign.c | |
parent | tests: No spelling fix for test text. (diff) | |
download | gnupg-78d875a0f83bc046279b951aea76cd74f3c44fd8.tar.gz gnupg-78d875a0f83bc046279b951aea76cd74f3c44fd8.zip |
agent: Prepare to pass an additional parameter to the getpin callback.
* agent/call-scd.c (writekey_parm_s, inq_needpin_s): Merge into ...
(inq_needpin_parm_s): new struct. Add new field 'getpin_cb_desc'.
Change users to set all fields.
(inq_needpin): Pass GETPIN_CB_DESC to the GETPIN_CB.
(agent_card_pksign): Add arg 'desc_text' and change arg 'getpin_cb' to
take an additional arg 'desc_text'.
(agent_card_pkdecrypt): Ditto.
(agent_card_writekey): Change arg 'getpin_cb' to take an additional
arg 'desc_text'.
(agent_card_scd): Ditto.
* agent/divert-scd.c (getpin_cb): Add new arg 'desc_text'.
(divert_pksign): Add new arg 'desc_text' and pass is to
agent_card_pksign.
(divert_pkdecrypt): Add new arg 'desc_text' and pass is to
agent_card_pkdecrypt.
* agent/pkdecrypt.c (agent_pkdecrypt): Pass DESC_TEXT to
divert_pkdecrypt.
* agent/pksign.c (agent_pksign_do): Pass DESC_TEXT to
divert_pksign.
--
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/pksign.c')
-rw-r--r-- | agent/pksign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/pksign.c b/agent/pksign.c index b34760818..4a5daedb0 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -346,7 +346,7 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce, is_ECDSA = 1; } - rc = divert_pksign (ctrl, + rc = divert_pksign (ctrl, desc_text, data, datalen, ctrl->digest.algo, shadow_info, &buf, &len); |