diff --git a/tests/api.c b/tests/api.c index 6881328e0..266af639c 100644 --- a/tests/api.c +++ b/tests/api.c @@ -45867,7 +45867,11 @@ static int test_wc_ecc_get_curve_id_from_dp_params(void) ExpectIntEQ(wc_ecc_get_curve_id_from_name("SECP256R1"), ECC_SECP256R1); ExpectNotNull(ecKey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); - ret = EC_KEY_generate_key(ecKey); + if (EXPECT_SUCCESS()) { + ret = EC_KEY_generate_key(ecKey); + } else + ret = 0; + if (ret == 1) { /* normal test */ key = (ecc_key*)ecKey->internal; diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 106b7a5b5..9eec61525 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -915,8 +915,9 @@ static const char* bench_Usage_msg1[][22] = { "-p521 Measure ECC using P-521 curve.\n", "-ecc-all Bench all enabled ECC curves.\n", "- Algorithm to benchmark. Available algorithms include:\n", - "-lng Display benchmark result by specified language.\n" - " 0: English, 1: Japanese\n", + ("-lng Display benchmark result by specified language.\n" + " 0: English, 1: Japanese\n" + ), " Size of block in bytes\n", ("-blocks Number of blocks. Can be used together with the " "'Size of block'\n" @@ -943,10 +944,12 @@ static const char* bench_Usage_msg1[][22] = { "-p384 Measure ECC using P-384 curve.\n", "-p521 Measure ECC using P-521 curve.\n", "-ecc-all Bench all enabled ECC curves.\n", - "- アルゴリズムのベンチマークを実施します。\n" - " 利用可能なアルゴリズムは下記を含みます:\n", - "-lng 指定された言語でベンチマーク結果を表示します。\n" - " 0: 英語、 1: 日本語\n", + ("- アルゴリズムのベンチマークを実施します。\n" + " 利用可能なアルゴリズムは下記を含みます:\n" + ), + ("-lng 指定された言語でベンチマーク結果を表示します。\n" + " 0: 英語、 1: 日本語\n" + ), " ブロックサイズをバイト単位で指定します。\n", "-blocks TBD.\n", "-threads 実行するスレッド数\n", diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index ee7f69607..58f2efacb 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -11133,9 +11133,7 @@ void InitDecodedCert_ex(DecodedCert* cert, #endif /* WOLFSSL_HAVE_ISSUER_NAMES */ #endif /* WOLFSSL_CERT_GEN || WOLFSSL_CERT_EXT */ - #ifndef NO_CERTS InitSignatureCtx(&cert->sigCtx, heap, devId); - #endif } } @@ -11246,9 +11244,7 @@ void FreeDecodedCert(DecodedCert* cert) if (cert->sce_tsip_encRsaKeyIdx != NULL) XFREE(cert->sce_tsip_encRsaKeyIdx, cert->heap, DYNAMIC_TYPE_RSA); #endif -#ifndef NO_CERTS FreeSignatureCtx(&cert->sigCtx); -#endif } void wc_FreeDecodedCert(DecodedCert* cert)