summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-11-14 16:08:17 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-11-14 16:08:17 +1100
commit1e0b248d47c96be944868a735553af8482300a07 (patch)
tree9c13ee9e9da06a6c440a49ce52a4be000a36dabb /sshkey.c
parent546274a6f89489d2e6be8a8b62f2bb63c87a61fd (diff)
Put sshsk_sign call inside ifdef ENABLE_SK.
Fixes build against OpenSSL configured without ECC.
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshkey.c b/sshkey.c
index 1b66d4ec..80186206 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -2775,11 +2775,13 @@ sshkey_sign(struct sshkey *key,
case KEY_ED25519_CERT:
r = ssh_ed25519_sign(key, sigp, lenp, data, datalen, compat);
break;
+#ifdef ENABLE_SK
case KEY_ED25519_SK:
case KEY_ED25519_SK_CERT:
r = sshsk_sign(sk_provider, key, sigp, lenp, data, datalen,
compat);
break;
+#endif /* ENABLE_SK */
#ifdef WITH_XMSS
case KEY_XMSS:
case KEY_XMSS_CERT: