libressl-portable/patches/bn_shift.patch

35 lines
559 B
Diff
Raw Normal View History

2023-02-09 18:44:56 +01:00
--- tests/bn_shift.c.orig Thu Feb 9 18:42:51 2023
+++ tests/bn_shift.c Thu Feb 9 18:43:08 2023
@@ -351,6 +351,8 @@ test_bn_rshift_to_zero(void)
return failed;
}
+#if 0
+
static void
benchmark_bn_lshift1(BIGNUM *bn)
{
2023-02-09 18:44:56 +01:00
@@ -616,9 +618,12 @@ benchmark_run(const struct benchmark *bm, int seconds)
BN_free(bn);
}
+#endif
+
static void
benchmark_bn_shift(void)
{
+#if 0
const struct benchmark *bm;
size_t i;
2023-02-09 18:44:56 +01:00
@@ -626,6 +631,9 @@ benchmark_bn_shift(void)
bm = &benchmarks[i];
benchmark_run(bm, 5);
}
+#else
+ return;
+#endif
}
int