Skip to content

Commit

Permalink
work around missing function for openssl speed dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Jul 10, 2023
1 parent 893cdf1 commit 4828ab2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tool/speed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1466,9 +1466,14 @@ static EVP_PKEY * evp_generate_key(const int curve_nid) {
}

static int ec_key_check_peer(const EC_KEY *ec_key) {
#if !defined(OPENSSL_BENCHMARK)
// If building against AWS-LC, use its specialised fips function if fips-mode
// is enabled.
if (FIPS_mode() == 1) {
return EC_KEY_check_fips(ec_key);
}
#endif

return EC_KEY_check_key(ec_key);
}

Expand Down

0 comments on commit 4828ab2

Please sign in to comment.