Fix define protection to be ED25519 not ECC

This commit is contained in:
Sean Parkinson
2018-07-18 10:12:57 +10:00
parent a862ef860b
commit 0236a293e4

View File

@ -16183,7 +16183,7 @@ void PickHashSigAlgo(WOLFSSL* ssl, const byte* hashSigAlgo,
byte hashAlgo = 0, sigAlgo = 0;
DecodeSigAlg(&hashSigAlgo[i], &hashAlgo, &sigAlgo);
#ifdef HAVE_ECC
#ifdef HAVE_ED25519
if (ssl->pkCurveOID == ECC_ED25519_OID && sigAlgo != ed25519_sa_algo)
continue;