summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-01-17 19:15:46 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-01-23 12:43:17 +0000
commit33d4558d3ddf746a890d5b078b1a6a94e08b68ce (patch)
tree7415dce5913c6c4ea7fd6414cf34336fc00cee36 /src
parent5d4365f4aca0f48cfe8db9de4115b77c52e09745 (diff)
downloadgnutls-33d4558d3ddf746a890d5b078b1a6a94e08b68ce.tar.gz
p11tool: corrected issue preventing the deletion of objects in batch mode
Previously initialization of PIN callbacks would only happen during listing of objects, which happened only in non-batch mode. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r--src/pkcs11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index 93b9da4a1e..6a872de397 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -83,6 +83,8 @@ pkcs11_delete(FILE * outfile, const char *url,
if (login_flags) obj_flags = login_flags;
+ pkcs11_common(info);
+
if (info->batch == 0) {
pkcs11_list(outfile, url, PKCS11_TYPE_ALL, login_flags,
GNUTLS_PKCS11_URL_LIB, info);