summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-02 00:19:25 +0000
committerDamien Miller <djm@mindrot.org>2019-09-02 10:32:43 +1000
commitb52c0c2e64988277a35a955a474d944967059aeb (patch)
tree525963ebb70bc1edccff58a7e8d4948e2afaaf18
parent0713322e18162463c5ab5ddfb9f935055ca775d8 (diff)
upstream: downgrade PKCS#11 "provider returned no slots" warning
from log level error to debug. This is common when attempting to enumerate keys on smartcard readers with no cards plugged in. bz#3058 ok dtucker@ OpenBSD-Commit-ID: bb8839ddeb77c271390488af1b771041d43e49c6
-rw-r--r--ssh-pkcs11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index 45ab80d0a..d1a101218 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-pkcs11.c,v 1.43 2019/03/08 17:24:43 markus Exp $ */ 1/* $OpenBSD: ssh-pkcs11.c,v 1.44 2019/09/02 00:19:25 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Markus Friedl. All rights reserved. 3 * Copyright (c) 2010 Markus Friedl. All rights reserved.
4 * Copyright (c) 2014 Pedro Martelletto. All rights reserved. 4 * Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -1523,7 +1523,7 @@ pkcs11_register_provider(char *provider_id, char *pin, struct sshkey ***keyp,
1523 goto fail; 1523 goto fail;
1524 } 1524 }
1525 if (p->nslots == 0) { 1525 if (p->nslots == 0) {
1526 error("%s: provider %s returned no slots", __func__, 1526 debug("%s: provider %s returned no slots", __func__,
1527 provider_id); 1527 provider_id);
1528 ret = -SSH_PKCS11_ERR_NO_SLOTS; 1528 ret = -SSH_PKCS11_ERR_NO_SLOTS;
1529 goto fail; 1529 goto fail;