@@ -42,7 +42,7 @@ static void check_wallet_erase_pin(jade_process_t* process, const uint8_t* pin_e
4242 keychain_persist_key_flags ();
4343
4444 // Show/return 'Internal Error' message, and shut-down
45- jade_process_reject_message (process , CBOR_RPC_INTERNAL_ERROR , "Internal Error" , NULL );
45+ jade_process_reject_message (process , CBOR_RPC_INTERNAL_ERROR , "Internal Error" );
4646
4747 const char * message [] = { "Internal Error!" };
4848 await_error_activity (message , 1 );
@@ -92,7 +92,7 @@ static bool get_pin_get_aeskey(jade_process_t* process, const char* title, uint8
9292#ifndef CONFIG_DEBUG_UNATTENDED_CI
9393 if (!run_pin_entry_loop (& pin_insert )) {
9494 // User abandoned entering pin
95- jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandonded pin entry" , NULL );
95+ jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandonded pin entry" );
9696 SENSITIVE_POP (& pin_insert );
9797 return false;
9898 }
@@ -139,7 +139,7 @@ static bool set_pin_get_aeskey(jade_process_t* process, const char* title, uint8
139139#ifndef CONFIG_DEBUG_UNATTENDED_CI
140140 if (!run_pin_entry_loop (& pin_insert )) {
141141 // User abandoned setting new pin
142- jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandoned setting new PIN" , NULL );
142+ jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandoned setting new PIN" );
143143 SENSITIVE_POP (& pin_insert );
144144 return false;
145145 }
@@ -174,7 +174,7 @@ static bool set_pin_get_aeskey(jade_process_t* process, const char* title, uint8
174174 const char * message [] = { "Pin mismatch," , "please try again." };
175175 if (!await_continueback_activity (NULL , message , 2 , true, NULL )) {
176176 // Abandon setting new pin
177- jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandoned setting new PIN" , NULL );
177+ jade_process_reject_message (process , CBOR_RPC_USER_CANCELLED , "User abandoned setting new PIN" );
178178 SENSITIVE_POP (& pin_insert );
179179 return false;
180180 }
@@ -243,7 +243,7 @@ static bool get_pin_load_keys(jade_process_t* process, const bool suppress_pin_c
243243 if (!keychain_complete_derivation_with_passphrase (passphrase )) {
244244 SENSITIVE_POP (passphrase );
245245 JADE_LOGE ("Failed to derive wallet" );
246- jade_process_reject_message (process , CBOR_RPC_INTERNAL_ERROR , "Failed to derive wallet" , NULL );
246+ jade_process_reject_message (process , CBOR_RPC_INTERNAL_ERROR , "Failed to derive wallet" );
247247
248248 const char * message [] = { "Failed to derive wallet" };
249249 await_error_activity (message , 1 );
@@ -320,7 +320,7 @@ static bool set_pin_save_keys(jade_process_t* process)
320320 if (!keychain_store (aeskey , sizeof (aeskey ))) {
321321 JADE_LOGE ("Failed to store key data encrypted in flash memory!" );
322322 jade_process_reject_message (
323- process , CBOR_RPC_INTERNAL_ERROR , "Failed to store key data encrypted in flash memory" , NULL );
323+ process , CBOR_RPC_INTERNAL_ERROR , "Failed to store key data encrypted in flash memory" );
324324
325325 const char * message [] = { "Failed to persist key data" };
326326 await_error_activity (message , 1 );
@@ -358,7 +358,7 @@ void auth_user_process(void* process_ptr)
358358 const char * errmsg = NULL ;
359359 const int errcode = params_set_epoch_time (& params , & errmsg );
360360 if (errcode ) {
361- jade_process_reject_message (process , errcode , errmsg , NULL );
361+ jade_process_reject_message (process , errcode , errmsg );
362362 goto cleanup ;
363363 }
364364 }
@@ -399,7 +399,7 @@ void auth_user_process(void* process_ptr)
399399 // Reject the message as hw locked
400400 JADE_LOGI ("Trying to reuse temporary keychain with different message-source" );
401401 jade_process_reject_message (process , CBOR_RPC_HW_LOCKED ,
402- "Cannot process message - temporary wallet associated with different connection" , NULL );
402+ "Cannot process message - temporary wallet associated with different connection" );
403403 }
404404 } else if (keychain_has_pin ()) {
405405 // Jade is initialised with persisted wallet - if required use PIN to unlock
0 commit comments