File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ static const char* GetRsaType(int type)
154154}
155155#endif
156156
157+ #ifdef WOLF_CRYPTO_CB_CMD
157158static 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+
165168WOLFSSL_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 }
You can’t perform that action at this time.
0 commit comments