Ensure FIDO/PKCS11 libraries contain expected symbols
authordjm <djm@openbsd.org>
Wed, 19 Jul 2023 14:02:27 +0000 (14:02 +0000)
committerdjm <djm@openbsd.org>
Wed, 19 Jul 2023 14:02:27 +0000 (14:02 +0000)
commitf8f5a6b003981bb824329dc987d101977beda7ca
tree98ed4bdded22c42e5afd44af24bf130daa65dde4
parent7bc29a9d5cd697290aa056e94ecee6253d3425f8
Ensure FIDO/PKCS11 libraries contain expected symbols

This checks via nlist(3) that candidate provider libraries contain one
of the symbols that we will require prior to dlopen(), which can cause
a number of side effects, including execution of constructors.

Feedback deraadt; ok markus
usr.bin/ssh/misc.c
usr.bin/ssh/misc.h
usr.bin/ssh/ssh-pkcs11.c
usr.bin/ssh/ssh-sk.c