Skip to content

Commit

Permalink
Merge pull request #61 from ColtonWilley/wolfprov_fips_build_fix
Browse files Browse the repository at this point in the history
Fix build error for wolfProvider with FIPS enabled
  • Loading branch information
dgarske authored Jan 23, 2025
2 parents 819f8d5 + f670a35 commit aad3272
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wp_wolfprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,21 +1131,21 @@ static const OSSL_DISPATCH wolfprov_dispatch_table[] = {
(void)ok;
(void)err;
(void)hash;
WOLFPROVIDER_MSG(WE_LOG_PROVIDER,
WOLFPROV_MSG(WP_LOG_PROVIDER,
"in my Fips callback, ok = %d, err = %d\n", ok, err);
WOLFPROVIDER_MSG(WE_LOG_PROVIDER,
WOLFPROV_MSG(WP_LOG_PROVIDER,
"message = %s\n", wc_GetErrorString(err));
WOLFPROVIDER_MSG(WE_LOG_PROVIDER,
WOLFPROV_MSG(WP_LOG_PROVIDER,
"hash = %s\n", hash);

#ifdef WC_NO_ERR_TRACE
if (err == WC_NO_ERR_TRACE(IN_CORE_FIPS_E)) {
#else
if (err == IN_CORE_FIPS_E) {
#endif
WOLFPROVIDER_MSG(WE_LOG_PROVIDER,
WOLFPROV_MSG(WP_LOG_PROVIDER,
"In core integrity hash check failure, copy above hash\n");
WOLFPROVIDER_MSG(WE_LOG_PROVIDER,
WOLFPROV_MSG(WP_LOG_PROVIDER,
"into verifyCore[] in fips_test.c and rebuild\n");
}
}
Expand Down

0 comments on commit aad3272

Please sign in to comment.