]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: downgrade PKCS#11 "provider returned no slots" warning
authordjm@openbsd.org <djm@openbsd.org>
Mon, 2 Sep 2019 00:19:25 +0000 (00:19 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 2 Sep 2019 00:32:43 +0000 (10:32 +1000)
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

ssh-pkcs11.c

index 45ab80d0a6765c7216e131d4003956b27665c148..d1a10121879734bd95ab7f511549376d73c4edc7 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.43 2019/03/08 17:24:43 markus Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.44 2019/09/02 00:19:25 djm Exp $ */
 /*
  * Copyright (c) 2010 Markus Friedl.  All rights reserved.
  * Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -1523,7 +1523,7 @@ pkcs11_register_provider(char *provider_id, char *pin, struct sshkey ***keyp,
                goto fail;
        }
        if (p->nslots == 0) {
-               error("%s: provider %s returned no slots", __func__,
+               debug("%s: provider %s returned no slots", __func__,
                    provider_id);
                ret = -SSH_PKCS11_ERR_NO_SLOTS;
                goto fail;