Index: openssl/crypto/ec/ectest.c |
=================================================================== |
--- openssl/crypto/ec/ectest.c (revision 105093) |
+++ openssl/crypto/ec/ectest.c (working copy) |
@@ -432,9 +432,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, "."); |
fflush(stdout); |
-#if 0 |
if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; |
-#endif |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, " ok\n"); |
@@ -478,9 +476,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, "."); |
fflush(stdout); |
-#if 0 |
if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; |
-#endif |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, " ok\n"); |
@@ -525,9 +521,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, "."); |
fflush(stdout); |
-#if 0 |
if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; |
-#endif |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, " ok\n"); |
@@ -577,9 +571,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, "."); |
fflush(stdout); |
-#if 0 |
if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; |
-#endif |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, " ok\n"); |
@@ -635,9 +627,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, "."); |
fflush(stdout); |
-#if 0 |
if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; |
-#endif |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; |
fprintf(stdout, " ok\n"); |
@@ -809,7 +799,7 @@ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \ |
fprintf(stdout, "."); \ |
fflush(stdout); \ |
- /* if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; */ \ |
+ if (!EC_GROUP_precompute_mult(group, ctx)) ABORT; \ |
if (!EC_POINT_mul(group, Q, z, NULL, NULL, ctx)) ABORT; \ |
if (!EC_POINT_is_at_infinity(group, Q)) ABORT; \ |
fprintf(stdout, " ok\n"); \ |
@@ -1336,7 +1326,7 @@ |
#endif |
CRYPTO_cleanup_all_ex_data(); |
ERR_free_strings(); |
- ERR_remove_state(0); |
+ ERR_remove_thread_state(NULL); |
CRYPTO_mem_leaks_fp(stderr); |
return 0; |