avoid xmalloc(0) for PKCS#11 keyid for ECDSA keys (we already did this
authordjm <djm@openbsd.org>
Thu, 18 Nov 2021 21:11:01 +0000 (21:11 +0000)
committerdjm <djm@openbsd.org>
Thu, 18 Nov 2021 21:11:01 +0000 (21:11 +0000)
commita9f89e4d7d7a399ed2bcf8bebd73427706a4ff15
treebe574a0d2dea8d9213367a42f69066bef66ab788
parent63f7f39ad68a1632a2f0e20f2e646673f1457a1f
avoid xmalloc(0) for PKCS#11 keyid for ECDSA keys (we already did this
for RSA keys). Avoids fatal errors for PKCS#11 libraries that return
empty keyid, e.g. Microchip ATECC608B "cryptoauthlib"; bz#3364
usr.bin/ssh/ssh-pkcs11.c