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 0a0c92a4..ced00d95 100644 --- a/ssh-sk-helper.c +++ b/ssh-sk-helper.c @@ -51,6 +51,7 @@ #include "ssherr.h" #include "ssh-sk.h" +#ifdef ENABLE_SK extern char *__progname; int @@ -141,3 +142,13 @@ main(int argc, char **argv) return (0); } +#else /* ENABLE_SK */ +#include <stdio.h> + +int +main(int argc, char **argv) +{ + fprintf(stderr, "ssh-sk-helper: disabled at compile time\n"); + return -1; +} +#endif /* ENABLE_SK */ |