diff options
author | Werner Koch <[email protected]> | 2004-02-13 17:06:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-02-13 17:06:34 +0000 |
commit | cbff0b05e54d7aa022c88e76dddd8d5106cc3536 (patch) | |
tree | 7bb4ed7248558e12b3e96120d6029ed7603aaf2d /agent/pksign.c | |
parent | Require libksba 0.9.4 and libgcrypt 1.1.92. (diff) | |
download | gnupg-cbff0b05e54d7aa022c88e76dddd8d5106cc3536.tar.gz gnupg-cbff0b05e54d7aa022c88e76dddd8d5106cc3536.zip |
* command.c (cmd_setkeydesc): New.
(register_commands): Add command SETKEYDESC.
(cmd_pksign, cmd_pkdecrypt): Use the key description.
(reset_notify): Reset the description.
* findkey.c (unprotect): Add arg DESC_TEXT.
(agent_key_from_file): Ditto.
* pksign.c (agent_pksign): Ditto.
* pkdecrypt.c (agent_pkdecrypt): Ditto. Made CIPHERTEXT an
unsigned char*.
Diffstat (limited to 'agent/pksign.c')
-rw-r--r-- | agent/pksign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/pksign.c b/agent/pksign.c index 34381365e..8bec33c0b 100644 --- a/agent/pksign.c +++ b/agent/pksign.c @@ -70,7 +70,7 @@ do_encode_md (const byte * md, size_t mdlen, int algo, gcry_sexp_t * r_hash) /* SIGN whatever information we have accumulated in CTRL and write it back to OUTFP. */ int -agent_pksign (CTRL ctrl, FILE *outfp, int ignore_cache) +agent_pksign (CTRL ctrl, const char *desc_text, FILE *outfp, int ignore_cache) { gcry_sexp_t s_skey = NULL, s_hash = NULL, s_sig = NULL; unsigned char *shadow_info = NULL; @@ -81,7 +81,7 @@ agent_pksign (CTRL ctrl, FILE *outfp, int ignore_cache) if (!ctrl->have_keygrip) return gpg_error (GPG_ERR_NO_SECKEY); - rc = agent_key_from_file (ctrl, ctrl->keygrip, + rc = agent_key_from_file (ctrl, desc_text, ctrl->keygrip, &shadow_info, ignore_cache, &s_skey); if (rc) { |