upstream: add a SK_DUMMY_INTEGRATE define that allows the dummy

security key middleware to be directly linked; useful for writing fuzzers,
etc.

OpenBSD-Regress-ID: 0ebd00159b58ebd85e61d8270fc02f1e45df1544
This commit is contained in:
djm@openbsd.org 2021-01-30 00:56:38 +00:00 committed by Damien Miller
parent 1a4b927586
commit 7c2e3d6de1
1 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,13 @@
# error SK API has changed, sk-dummy.c needs an update
#endif
#ifdef SK_DUMMY_INTEGRATE
# define sk_api_version ssh_sk_api_version
# define sk_enroll ssh_sk_enroll
# define sk_sign ssh_sk_sign
# define sk_load_resident_keys ssh_sk_load_resident_keys
#endif /* !SK_STANDALONE */
static void skdebug(const char *func, const char *fmt, ...)
__attribute__((__format__ (printf, 2, 3)));