diff options
author | Werner Koch <wk@gnupg.org> | 2004-02-13 18:06:50 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2004-02-13 18:06:50 +0100 |
commit | 01486117e893f1a57460297937e6f6ff03fe6359 (patch) | |
tree | 18287194edd8a6b448d8d1841f154344bdf995ea /sm/certcheck.c | |
parent | * command.c (cmd_setkeydesc): New. (diff) | |
download | gnupg2-01486117e893f1a57460297937e6f6ff03fe6359.tar.xz gnupg2-01486117e893f1a57460297937e6f6ff03fe6359.zip |
* certcheck.c (gpgsm_create_cms_signature): Format a description
for use by the pinentry.
* decrypt.c (gpgsm_decrypt): Ditto. Free HEXKEYGRIP.
* certdump.c (format_name_cookie, format_name_writer)
(gpgsm_format_name): New.
(gpgsm_format_serial): New.
(gpgsm_format_keydesc): New.
* call-agent.c (gpgsm_agent_pksign): New arg DESC.
(gpgsm_agent_pkdecrypt): Ditto.
Diffstat (limited to 'sm/certcheck.c')
-rw-r--r-- | sm/certcheck.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sm/certcheck.c b/sm/certcheck.c index 47cae13c0..dbd0ff1ba 100644 --- a/sm/certcheck.c +++ b/sm/certcheck.c @@ -282,16 +282,19 @@ gpgsm_create_cms_signature (ksba_cert_t cert, gcry_md_hd_t md, int mdalgo, char **r_sigval) { int rc; - char *grip; + char *grip, *desc; size_t siglen; grip = gpgsm_get_keygrip_hexstring (cert); if (!grip) return gpg_error (GPG_ERR_BAD_CERT); - rc = gpgsm_agent_pksign (grip, gcry_md_read(md, mdalgo), + desc = gpgsm_format_keydesc (cert); + + rc = gpgsm_agent_pksign (grip, desc, gcry_md_read(md, mdalgo), gcry_md_get_algo_dlen (mdalgo), mdalgo, r_sigval, &siglen); + xfree (desc); xfree (grip); return rc; } |