summaryrefslogtreecommitdiffstats
path: root/ssh-sk.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-11-01 03:34:49 +0100
committerDamien Miller <djm@mindrot.org>2019-11-01 03:35:34 +0100
commit764d51e04460ec0da12e05e4777bc90c116accb9 (patch)
tree7bd6cd697ffcf62cea723059bebd1968cef8cb32 /ssh-sk.c
parentupstream: remove duplicate PUBKEY_DEFAULT_PK_ALG on !WITH_OPENSSL path (diff)
downloadopenssh-764d51e04460ec0da12e05e4777bc90c116accb9.tar.xz
openssh-764d51e04460ec0da12e05e4777bc90c116accb9.zip
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.c')
-rw-r--r--ssh-sk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-sk.c b/ssh-sk.c
index 7d313f57b..122a1e2b7 100644
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -19,6 +19,8 @@
#include "includes.h"
+#ifdef ENABLE_SK
+
#include <dlfcn.h>
#include <stddef.h>
#include <stdint.h>
@@ -375,3 +377,4 @@ sshsk_ecdsa_sign(const char *provider_path, const struct sshkey *key,
sshbuf_free(inner_sig);
return r;
}
+#endif /* ENABLE_SK */