diff options
author | NIIBE Yutaka <[email protected]> | 2020-12-08 06:06:33 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-12-08 06:06:33 +0000 |
commit | 9beab36dfa39106f6efd1bb89551a581bcf9df60 (patch) | |
tree | 01fec305f3077afae5152820f810922885c0e41f /agent/agent.h | |
parent | agent: Allow pksign operation with card but no file. (diff) | |
download | gnupg-9beab36dfa39106f6efd1bb89551a581bcf9df60.tar.gz gnupg-9beab36dfa39106f6efd1bb89551a581bcf9df60.zip |
agent: Clean up the API of agent_pkdecrypt.
* agent/agent.h (agent_pkdecrypt): Use gpg_error_t type.
* agent/pkdecrypt.c (agent_pkdecrypt): Use gpg_error_t type.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/agent/agent.h b/agent/agent.h index 25d9e2d29..4d29ce9c9 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -514,9 +514,9 @@ gpg_error_t agent_pksign (ctrl_t ctrl, const char *cache_nonce, membuf_t *outbuf, cache_mode_t cache_mode); /*-- pkdecrypt.c --*/ -int agent_pkdecrypt (ctrl_t ctrl, const char *desc_text, - const unsigned char *ciphertext, size_t ciphertextlen, - membuf_t *outbuf, int *r_padding); +gpg_error_t agent_pkdecrypt (ctrl_t ctrl, const char *desc_text, + const unsigned char *ciphertext, size_t ciphertextlen, + membuf_t *outbuf, int *r_padding); /*-- genkey.c --*/ int check_passphrase_constraints (ctrl_t ctrl, const char *pw, int no_empty, |