aboutsummaryrefslogtreecommitdiffstats
path: root/tkd/pkcs11.c
diff options
context:
space:
mode:
Diffstat (limited to 'tkd/pkcs11.c')
-rw-r--r--tkd/pkcs11.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tkd/pkcs11.c b/tkd/pkcs11.c
index 968c86454..7052fe753 100644
--- a/tkd/pkcs11.c
+++ b/tkd/pkcs11.c
@@ -280,6 +280,7 @@ compute_keygrip_rsa (char *keygrip, gcry_sexp_t *r_pubkey,
else
{
bin2hex (grip, 20, keygrip);
+ log_debug ("keygrip: %s\n", keygrip);
*r_pubkey = s_pkey;
}
}
@@ -302,6 +303,7 @@ compute_keygrip_ec (char *keygrip, gcry_sexp_t *r_pubkey,
else
{
bin2hex (grip, 20, keygrip);
+ log_debug ("keygrip: %s\n", keygrip);
*r_pubkey = s_pkey;
}
}
@@ -731,6 +733,8 @@ find_key (struct cryptoki *ck, const char *keygrip, struct key **r_key)
int i;
int j;
+ log_debug ("find_key: %s\n", keygrip);
+
*r_key = NULL;
for (i = 0; i < ck->num_slots; i++)
{
@@ -1271,7 +1275,7 @@ tkd_sign (ctrl_t ctrl, assuan_context_t ctx,
if (err)
return err;
- cmd = "VALUE";
+ cmd = "EXTRA";
err = assuan_inquire (ctx, cmd, &value, &valuelen, MAXLEN_VALUE);
if (err)
{
@@ -1287,6 +1291,7 @@ tkd_sign (ctrl_t ctrl, assuan_context_t ctx,
xfree (sig);
return err;
}
+
*r_outdata = sig;
}