Skip to content

Commit eebb52f

Browse files
author
Andras Fekete
committed
Fix compilation errors
1 parent 872dfbc commit eebb52f

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/we_internal.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -771,22 +771,25 @@ static int we_pkey_asn1(ENGINE *e, EVP_PKEY_ASN1_METHOD **pkey,
771771

772772
static void we_fipsCb(int ok, int err, const char* hash)
773773
{
774+
(void)ok;
775+
(void)err;
776+
(void)hash;
774777
WOLFENGINE_MSG(WE_LOG_ENGINE,
775-
"%sin my Fips callback, ok = %d, err = %d\n",
776-
ok ? info_prefix : err_prefix, ok, err);
778+
"in my Fips callback, ok = %d, err = %d\n", ok, err);
777779
WOLFENGINE_MSG(WE_LOG_ENGINE,
778-
"%smessage = %s\n", ok ? info_prefix : err_prefix,
779-
wc_GetErrorString(err));
780+
"message = %s\n", wc_GetErrorString(err));
780781
WOLFENGINE_MSG(WE_LOG_ENGINE,
781-
"%shash = %s\n", ok ? info_prefix : err_prefix, hash);
782+
"hash = %s\n", hash);
782783

784+
#ifdef WC_NO_ERR_TRACE
783785
if (err == WC_NO_ERR_TRACE(IN_CORE_FIPS_E)) {
786+
#else
787+
if (err == IN_CORE_FIPS_E) {
788+
#endif
784789
WOLFENGINE_MSG(WE_LOG_ENGINE,
785-
"%sIn core integrity hash check failure, copy above hash\n",
786-
err_prefix);
790+
"In core integrity hash check failure, copy above hash\n");
787791
WOLFENGINE_MSG(WE_LOG_ENGINE,
788-
"%sinto verifyCore[] in fips_test.c and rebuild\n",
789-
err_prefix);
792+
"into verifyCore[] in fips_test.c and rebuild\n");
790793
}
791794
}
792795
#endif

0 commit comments

Comments
 (0)