Skip to content

Commit bffcfb7

Browse files
committed
wolfcrypt/src/ecc.c: in wc_ecc_get_curve_id_from_oid(), deconditionalize guard against zero-length len added in 03a6eed, to fix test_wc_ecc_get_curve_id_from_oid() failing in cross-mingw-all-crypto.
1 parent 6429315 commit bffcfb7

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

wolfcrypt/src/ecc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4554,13 +4554,11 @@ int wc_ecc_get_curve_id_from_oid(const byte* oid, word32 len)
45544554
}
45554555
#endif
45564556

4557-
#if !defined(HAVE_OID_ENCODING) && !defined(HAVE_OID_DECODING)
45584557
if (len == 0) {
45594558
/* SAKKE has zero oidSz and will otherwise match with len==0. */
45604559
WOLFSSL_MSG("zero oidSz");
45614560
return ECC_CURVE_INVALID;
45624561
}
4563-
#endif
45644562

45654563
for (curve_idx = 0; ecc_sets[curve_idx].size != 0; curve_idx++) {
45664564
#if defined(HAVE_OID_ENCODING) && !defined(HAVE_OID_DECODING)

0 commit comments

Comments
 (0)