diff options
author | NIIBE Yutaka <[email protected]> | 2023-03-15 06:05:15 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-03-15 06:05:15 +0000 |
commit | fcae367ab50c2425c7f1fde8a21eedc53902d66e (patch) | |
tree | 1d2531e4b6b5fa6f0ca1ed368186e6b96ac783d9 | |
parent | tkd: Implement finalizer. (diff) | |
download | gnupg-fcae367ab50c2425c7f1fde8a21eedc53902d66e.tar.gz gnupg-fcae367ab50c2425c7f1fde8a21eedc53902d66e.zip |
tkd: Check CKF_TOKEN_PRESENT, too.
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | tkd/pkcs11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tkd/pkcs11.c b/tkd/pkcs11.c index d943b87a1..42a90b7e9 100644 --- a/tkd/pkcs11.c +++ b/tkd/pkcs11.c @@ -1028,6 +1028,7 @@ token_init (ctrl_t ctrl, assuan_context_t ctx) if (get_token_info (token, &tk_info) == 0) { if ((tk_info.flags & CKF_TOKEN_INITIALIZED) == 0 + || (tk_info.flags & CKF_TOKEN_PRESENT) == 0 || (tk_info.flags & CKF_USER_PIN_LOCKED) != 0) continue; |