summaryrefslogtreecommitdiffstats
path: root/misc.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2023-07-19 16:02:27 +0200
committerDamien Miller <djm@mindrot.org>2023-07-19 16:21:31 +0200
commit29ef8a04866ca14688d5b7fed7b8b9deab851f77 (patch)
treebd26f6642dc682b6b0ca12e077cf3c75dc69d178 /misc.h
parentupstream: Disallow remote addition of FIDO/PKCS11 provider (diff)
downloadopenssh-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 07408ca13..fd77a7fd7 100644
--- a/misc.h
+++ b/misc.h
@@ -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);