Skip to content

Commit 5b5e66b

Browse files
Merge pull request #6732 from billphipps/correct_cryptocb_debug
Correct cryptocb cmd debug message
2 parents 2a5ed11 + 7a6e851 commit 5b5e66b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

wolfcrypt/src/cryptocb.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ static const char* GetRsaType(int type)
154154
}
155155
#endif
156156

157+
#ifdef WOLF_CRYPTO_CB_CMD
157158
static const char* GetCryptoCbCmdTypeStr(int type)
158159
{
159160
switch (type) {
@@ -162,6 +163,8 @@ static const char* GetCryptoCbCmdTypeStr(int type)
162163
}
163164
return NULL;
164165
}
166+
#endif
167+
165168
WOLFSSL_API void wc_CryptoCb_InfoString(wc_CryptoInfo* info)
166169
{
167170
if (info == NULL)
@@ -194,10 +197,12 @@ WOLFSSL_API void wc_CryptoCb_InfoString(wc_CryptoInfo* info)
194197
printf("Crypto CB: %s %s (%d)\n", GetAlgoTypeStr(info->algo_type),
195198
GetHashTypeStr(info->hmac.macType), info->hmac.macType);
196199
}
200+
#ifdef WOLF_CRYPTO_CB_CMD
197201
else if (info->algo_type == WC_ALGO_TYPE_NONE) {
198202
printf("Crypto CB: %s %s (%d)\n", GetAlgoTypeStr(info->algo_type),
199203
GetCryptoCbCmdTypeStr(info->cmd.type), info->cmd.type);
200204
}
205+
#endif
201206
else {
202207
printf("CryptoCb: %s \n", GetAlgoTypeStr(info->algo_type));
203208
}

0 commit comments

Comments
 (0)