mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 06:38:11 +00:00
Add more RC_FINAL_ enum types
This commit is contained in:
parent
7a5ea7e255
commit
8973f2beca
@ -17,3 +17,4 @@ status codes on exit:
|
||||
2 = aborted
|
||||
3 = aborted by checkpoint
|
||||
4 = aborted by runtime
|
||||
5 = aborted by finish
|
||||
|
@ -226,8 +226,13 @@ typedef enum status_rc
|
||||
|
||||
typedef enum rc_final
|
||||
{
|
||||
RC_FINAL_OK = 0,
|
||||
RC_FINAL_EXHAUSTED = 1
|
||||
RC_FINAL_ERROR = -1,
|
||||
RC_FINAL_OK = 0,
|
||||
RC_FINAL_EXHAUSTED = 1,
|
||||
RC_FINAL_ABORT = 2,
|
||||
RC_FINAL_ABORT_CHECKPOINT = 3,
|
||||
RC_FINAL_ABORT_RUNTIME = 4,
|
||||
RC_FINAL_ABORT_FINISH = 5,
|
||||
|
||||
} rc_final_t;
|
||||
|
||||
|
@ -1807,14 +1807,14 @@ int hashcat_session_execute (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
if (rc_final == 0)
|
||||
{
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_FINISH) rc_final = 5;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_RUNTIME) rc_final = 4;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_CHECKPOINT) rc_final = 3;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED) rc_final = 2;
|
||||
if (status_ctx->devices_status == STATUS_QUIT) rc_final = 2;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_FINISH) rc_final = RC_FINAL_ABORT_FINISH;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_RUNTIME) rc_final = RC_FINAL_ABORT_RUNTIME;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED_CHECKPOINT) rc_final = RC_FINAL_ABORT_CHECKPOINT;
|
||||
if (status_ctx->devices_status == STATUS_ABORTED) rc_final = RC_FINAL_ABORT;
|
||||
if (status_ctx->devices_status == STATUS_QUIT) rc_final = RC_FINAL_ABORT;
|
||||
if (status_ctx->devices_status == STATUS_EXHAUSTED) rc_final = RC_FINAL_EXHAUSTED;
|
||||
if (status_ctx->devices_status == STATUS_CRACKED) rc_final = RC_FINAL_OK;
|
||||
if (status_ctx->devices_status == STATUS_ERROR) rc_final = -1;
|
||||
if (status_ctx->devices_status == STATUS_ERROR) rc_final = RC_FINAL_ERROR;
|
||||
}
|
||||
else if (rc_final == -1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user