summaryrefslogtreecommitdiffstats
path: root/sk-usbhid.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2021-10-01 16:35:05 +1000
committerDamien Miller <djm@mindrot.org>2021-10-01 16:36:24 +1000
commit872595572b6c9a584ed754165e8b7c4c9e7e1d61 (patch)
tree4fd732f1c87d68a17393dc79619add8801b571c7 /sk-usbhid.c
parent489741dc68366940d369ac670b210b4834a6c272 (diff)
fix FIDO key support for !OPENSSL_HAS_ECC case
ok dtucker
Diffstat (limited to 'sk-usbhid.c')
-rw-r--r--sk-usbhid.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sk-usbhid.c b/sk-usbhid.c
index 2fdf3d94..01412b69 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -31,6 +31,15 @@
#include <sha2.h>
#endif
+/*
+ * Almost every use of OpenSSL in this file is for ECDSA-NISTP256.
+ * This is strictly a larger hammer than necessary, but it reduces changes
+ * with upstream.
+ */
+#ifndef OPENSSL_HAS_ECC
+# undef WITH_OPENSSL
+#endif
+
#ifdef WITH_OPENSSL
#include <openssl/opensslv.h>
#include <openssl/crypto.h>