summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-12-15 18:27:02 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-12-15 18:27:02 +1100
commitfff8ff6dd580e1a72ba09a6775d185175cdc8d13 (patch)
tree757a209c6182948205232a180f6b0202c940c6b5
parent9244990ecdcfa36bb9371058111685b05f201c1e (diff)
Put SK ECDSA bits inside ifdef OPENSSL_HAS_ECC.
Fixes build when linking against OpenSSLs built with no-ec.
-rw-r--r--ssh-ecdsa-sk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-ecdsa-sk.c b/ssh-ecdsa-sk.c
index 7a2355c1a..083787952 100644
--- a/ssh-ecdsa-sk.c
+++ b/ssh-ecdsa-sk.c
@@ -54,6 +54,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
54 const u_char *data, size_t datalen, u_int compat, 54 const u_char *data, size_t datalen, u_int compat,
55 struct sshkey_sig_details **detailsp) 55 struct sshkey_sig_details **detailsp)
56{ 56{
57#ifdef OPENSSL_HAS_ECC
57 ECDSA_SIG *sig = NULL; 58 ECDSA_SIG *sig = NULL;
58 BIGNUM *sig_r = NULL, *sig_s = NULL; 59 BIGNUM *sig_r = NULL, *sig_s = NULL;
59 u_char sig_flags; 60 u_char sig_flags;
@@ -200,4 +201,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
200 BN_clear_free(sig_s); 201 BN_clear_free(sig_s);
201 free(ktype); 202 free(ktype);
202 return ret; 203 return ret;
204#else
205 return SSH_ERR_INTERNAL_ERROR;
206#endif
203} 207}