aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-07-25 14:35:04 +0000
committerWerner Koch <[email protected]>2005-07-25 14:35:04 +0000
commita2d1673d6622e39c41f061e1bffb5ca05c803320 (patch)
tree292c3b03237aab155753bb3dddc141235e0c1e55 /sm/gpgsm.h
parent* gpgsm.c (main): New options --no-log-file and --debug-none. (diff)
downloadgnupg-a2d1673d6622e39c41f061e1bffb5ca05c803320.tar.gz
gnupg-a2d1673d6622e39c41f061e1bffb5ca05c803320.zip
* findkey.c (agent_public_key_from_file): Fixed array assignment.
This was the cause for random segvs. * call-agent.c (gpgsm_agent_readkey): New.
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 2f3e83485..63d07a8c2 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -299,6 +299,8 @@ int gpgsm_agent_pkdecrypt (ctrl_t ctrl, const char *keygrip, const char *desc,
char **r_buf, size_t *r_buflen);
int gpgsm_agent_genkey (ctrl_t ctrl,
ksba_const_sexp_t keyparms, ksba_sexp_t *r_pubkey);
+int gpgsm_agent_readkey (ctrl_t ctrl, const char *hexkeygrip,
+ ksba_sexp_t *r_pubkey);
int gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert);
int gpgsm_agent_havekey (ctrl_t ctrl, const char *hexkeygrip);
int gpgsm_agent_marktrusted (ctrl_t ctrl, ksba_cert_t cert);