From d3b5c7a65f1f854eefe2231607b1c6d52b79565e Mon Sep 17 00:00:00 2001 From: djm Date: Sat, 30 Jan 2021 00:56:38 +0000 Subject: [PATCH] add a SK_DUMMY_INTEGRATE define that allows the dummy security key middleware to be directly linked; useful for writing fuzzers, etc. --- regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c b/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c index 52a1e103a43..54e7d06c600 100644 --- a/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c +++ b/regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c @@ -47,6 +47,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))); -- 2.20.1