mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
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:
parent
1a4b927586
commit
7c2e3d6de1
@ -51,6 +51,13 @@
|
|||||||
# error SK API has changed, sk-dummy.c needs an update
|
# error SK API has changed, sk-dummy.c needs an update
|
||||||
#endif
|
#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, ...)
|
static void skdebug(const char *func, const char *fmt, ...)
|
||||||
__attribute__((__format__ (printf, 2, 3)));
|
__attribute__((__format__ (printf, 2, 3)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user