add a SK_DUMMY_INTEGRATE define that allows the dummy security key
authordjm <djm@openbsd.org>
Sat, 30 Jan 2021 00:56:38 +0000 (00:56 +0000)
committerdjm <djm@openbsd.org>
Sat, 30 Jan 2021 00:56:38 +0000 (00:56 +0000)
middleware to be directly linked; useful for writing fuzzers, etc.

regress/usr.bin/ssh/misc/sk-dummy/sk-dummy.c

index 52a1e10..54e7d06 100644 (file)
 # 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)));