summaryrefslogtreecommitdiffstats
path: root/sshkey.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-11-01 04:49:25 +0100
committerDamien Miller <djm@mindrot.org>2019-11-01 04:49:55 +0100
commit03f9205f0fb49ea2507eacc143737a8511ae5a4e (patch)
treebb65fc87c4148d9e00ff3839a8d5ebacb02254d7 /sshkey.c
parentAdd prototype for localtime_r if needed. (diff)
downloadopenssh-03f9205f0fb49ea2507eacc143737a8511ae5a4e.tar.xz
openssh-03f9205f0fb49ea2507eacc143737a8511ae5a4e.zip
conditionalise SK sign/verify on ENABLE_SK
Spotted by Darren and his faux-Vax
Diffstat (limited to '')
-rw-r--r--sshkey.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshkey.c b/sshkey.c
index 4744dfbef..861d77689 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -2684,11 +2684,13 @@ sshkey_sign(struct sshkey *key,
case KEY_ECDSA:
r = ssh_ecdsa_sign(key, sigp, lenp, data, datalen, compat);
break;
+# ifdef ENABLE_SK
case KEY_ECDSA_SK_CERT:
case KEY_ECDSA_SK:
r = sshsk_ecdsa_sign(sk_provider, key, sigp, lenp,
data, datalen, compat);
break;
+# endif /* ENABLE_SK */
# endif /* OPENSSL_HAS_ECC */
case KEY_RSA_CERT:
case KEY_RSA:
@@ -2734,10 +2736,12 @@ sshkey_verify(const struct sshkey *key,
case KEY_ECDSA_CERT:
case KEY_ECDSA:
return ssh_ecdsa_verify(key, sig, siglen, data, dlen, compat);
+# ifdef ENABLE_SK
case KEY_ECDSA_SK_CERT:
case KEY_ECDSA_SK:
return ssh_ecdsa_sk_verify(key, sig, siglen, data, dlen,
compat);
+# endif /* ENABLE_SK */
# endif /* OPENSSL_HAS_ECC */
case KEY_RSA_CERT:
case KEY_RSA: