artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab256a
)
add a SK_DUMMY_INTEGRATE define that allows the dummy security key
author
djm
<djm@openbsd.org>
Sat, 30 Jan 2021 00:56:38 +0000
(
00:56
+0000)
committer
djm
<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
patch
|
blob
|
history
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
52a1e10
..
54e7d06
100644
(file)
--- 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)));