diff options
author | Damien Miller <djm@mindrot.org> | 2019-11-01 13:34:49 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-11-01 13:35:34 +1100 |
commit | 764d51e04460ec0da12e05e4777bc90c116accb9 (patch) | |
tree | 7bd6cd697ffcf62cea723059bebd1968cef8cb32 /ssh-sk-helper.c | |
parent | 45f17a159acfc5a8e450bfbcc2cffe72950ed7a3 (diff) |
autoconf pieces for U2F support
Mostly following existing logic for PKCS#11 - turning off support
when either libcrypto or dlopen(3) are unavailable.
Diffstat (limited to 'ssh-sk-helper.c')
-rw-r--r-- | ssh-sk-helper.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ssh-sk-helper.c b/ssh-sk-helper.c index 0a0c92a44..ced00d955 100644 --- a/ssh-sk-helper.c +++ b/ssh-sk-helper.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #include "ssherr.h" | 51 | #include "ssherr.h" |
52 | #include "ssh-sk.h" | 52 | #include "ssh-sk.h" |
53 | 53 | ||
54 | #ifdef ENABLE_SK | ||
54 | extern char *__progname; | 55 | extern char *__progname; |
55 | 56 | ||
56 | int | 57 | int |
@@ -141,3 +142,13 @@ main(int argc, char **argv) | |||
141 | 142 | ||
142 | return (0); | 143 | return (0); |
143 | } | 144 | } |
145 | #else /* ENABLE_SK */ | ||
146 | #include <stdio.h> | ||
147 | |||
148 | int | ||
149 | main(int argc, char **argv) | ||
150 | { | ||
151 | fprintf(stderr, "ssh-sk-helper: disabled at compile time\n"); | ||
152 | return -1; | ||
153 | } | ||
154 | #endif /* ENABLE_SK */ | ||