mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Put SK ECDSA bits inside ifdef OPENSSL_HAS_ECC.
Fixes build when linking against OpenSSLs built with no-ec.
This commit is contained in:
parent
9244990ecd
commit
fff8ff6dd5
@ -54,6 +54,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
|
|||||||
const u_char *data, size_t datalen, u_int compat,
|
const u_char *data, size_t datalen, u_int compat,
|
||||||
struct sshkey_sig_details **detailsp)
|
struct sshkey_sig_details **detailsp)
|
||||||
{
|
{
|
||||||
|
#ifdef OPENSSL_HAS_ECC
|
||||||
ECDSA_SIG *sig = NULL;
|
ECDSA_SIG *sig = NULL;
|
||||||
BIGNUM *sig_r = NULL, *sig_s = NULL;
|
BIGNUM *sig_r = NULL, *sig_s = NULL;
|
||||||
u_char sig_flags;
|
u_char sig_flags;
|
||||||
@ -200,4 +201,7 @@ ssh_ecdsa_sk_verify(const struct sshkey *key,
|
|||||||
BN_clear_free(sig_s);
|
BN_clear_free(sig_s);
|
||||||
free(ktype);
|
free(ktype);
|
||||||
return ret;
|
return ret;
|
||||||
|
#else
|
||||||
|
return SSH_ERR_INTERNAL_ERROR;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user