diff options
author | djm@openbsd.org <djm@openbsd.org> | 2023-07-19 16:02:27 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-07-19 16:21:31 +0200 |
commit | 29ef8a04866ca14688d5b7fed7b8b9deab851f77 (patch) | |
tree | bd26f6642dc682b6b0ca12e077cf3c75dc69d178 /misc.h | |
parent | upstream: Disallow remote addition of FIDO/PKCS11 provider (diff) | |
download | openssh-29ef8a04866ca14688d5b7fed7b8b9deab851f77.tar.xz openssh-29ef8a04866ca14688d5b7fed7b8b9deab851f77.zip |
upstream: 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
OpenBSD-Commit-ID: 1508a5fbd74e329e69a55b56c453c292029aefbe
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.102 2023/03/03 02:37:58 dtucker Exp $ */ +/* $OpenBSD: misc.h,v 1.103 2023/07/19 14:02:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -96,6 +96,7 @@ int parse_absolute_time(const char *, uint64_t *); void format_absolute_time(uint64_t, char *, size_t); int path_absolute(const char *); int stdfd_devnull(int, int, int); +int lib_contains_symbol(const char *, const char *); void sock_set_v6only(int); |