aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/findkey.c')
-rw-r--r--agent/findkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index 370050d8b..69c90b37f 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -1166,6 +1166,8 @@ key_parms_from_sexp (gcry_sexp_t s_key, gcry_sexp_t *r_list,
if (!list)
list = gcry_sexp_find_token (s_key, "private-key", 0 );
if (!list)
+ list = gcry_sexp_find_token (s_key, "public-key", 0 );
+ if (!list)
{
log_error ("invalid private key format\n");
return gpg_error (GPG_ERR_BAD_SECKEY);