[openssh-commits] [openssh] 01/01: Put SK ECDSA bits inside ifdef OPENSSL_HAS_ECC.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sun Dec 15 18:29:03 AEDT 2019
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit fff8ff6dd580e1a72ba09a6775d185175cdc8d13
Author: Darren Tucker <dtucker at dtucker.net>
Date: Sun Dec 15 18:27:02 2019 +1100
Put SK ECDSA bits inside ifdef OPENSSL_HAS_ECC.
Fixes build when linking against OpenSSLs built with no-ec.
---
ssh-ecdsa-sk.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ssh-ecdsa-sk.c b/ssh-ecdsa-sk.c
index 7a2355c1..08378795 100644
--- a/ssh-ecdsa-sk.c
+++ b/ssh-ecdsa-sk.c
@@ -54,6 +54,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
const u_char *data, size_t datalen, u_int compat,
struct sshkey_sig_details **detailsp)
{
+#ifdef OPENSSL_HAS_ECC
ECDSA_SIG *sig = NULL;
BIGNUM *sig_r = NULL, *sig_s = NULL;
u_char sig_flags;
@@ -200,4 +201,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
BN_clear_free(sig_s);
free(ktype);
return ret;
+#else
+ return SSH_ERR_INTERNAL_ERROR;
+#endif
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list