Status Code: Add specific return code for self-test fail (-11)

Fixes https://github.com/hashcat/hashcat/issues/3437
pull/3442/head
Jens Steube 2 years ago
parent 9de24b8598
commit 93d40beb17

@ -1,5 +1,11 @@
* changes v6.2.6 -> v6.2.x
##
## Technical
##
- Status Code: Add specific return code for self-test fail (-11)
* changes v6.2.5 -> v6.2.6
##

@ -1,6 +1,7 @@
status codes on exit:
=====================
-11 = self-test failed
-10 = autotune failure
-9 = mixed backend errors (combo of -3, -4, -5, -6, -7 errors type)
-8 = backend error: Invalid module_extra_buffer_size

@ -1842,6 +1842,7 @@ typedef struct backend_ctx
bool kernel_accel_warnings;
bool extra_size_warning;
bool mixed_warnings;
bool self_test_warnings;
// generic

@ -913,6 +913,8 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
event_log_warning (hashcat_ctx, "You can use --self-test-disable to override, but do not report related errors.");
event_log_warning (hashcat_ctx, NULL);
backend_ctx->self_test_warnings = true;
return -1;
}
}
@ -1825,6 +1827,7 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
if (backend_ctx->kernel_accel_warnings == true) rc_final = -7;
if (backend_ctx->extra_size_warning == true) rc_final = -8;
if (backend_ctx->mixed_warnings == true) rc_final = -9;
if (backend_ctx->self_test_warnings == true) rc_final = -11;
}
// special case for --stdout

Loading…
Cancel
Save