mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
minor: some code formatting changes for PKZIP
This commit is contained in:
parent
316b2952b5
commit
01a511b9dd
@ -193,9 +193,11 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (strncmp (p, SIGNATURE_PKZIP_V1, 7) != 0 && strncmp (p, SIGNATURE_PKZIP_V2, 8) != 0) return PARSER_SIGNATURE_UNMATCHED;
|
||||
|
||||
pkzip->version = 1;
|
||||
|
||||
if (strlen (p) == 9) pkzip->version = 2;
|
||||
|
||||
char sub[2];
|
||||
|
||||
sub[0] = p[strlen (p) - 1];
|
||||
sub[1] = '\0';
|
||||
pkzip->hash_count = atoi (sub);
|
||||
|
@ -193,6 +193,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (strncmp (p, SIGNATURE_PKZIP_V1, 7) != 0 && strncmp (p, SIGNATURE_PKZIP_V2, 8) != 0) return PARSER_SIGNATURE_UNMATCHED;
|
||||
|
||||
pkzip->version = 1;
|
||||
|
||||
if (strlen (p) == 9) pkzip->version = 2;
|
||||
|
||||
char sub[2];
|
||||
|
@ -193,6 +193,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (strncmp (p, SIGNATURE_PKZIP_V1, 7) != 0 && strncmp (p, SIGNATURE_PKZIP_V2, 8) != 0) return PARSER_SIGNATURE_UNMATCHED;
|
||||
|
||||
pkzip->version = 1;
|
||||
|
||||
if (strlen (p) == 9) pkzip->version = 2;
|
||||
|
||||
char sub[2];
|
||||
|
@ -193,6 +193,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (strncmp (p, SIGNATURE_PKZIP_V1, 7) != 0 && strncmp (p, SIGNATURE_PKZIP_V2, 8) != 0) return PARSER_SIGNATURE_UNMATCHED;
|
||||
|
||||
pkzip->version = 1;
|
||||
|
||||
if (strlen (p) == 9) pkzip->version = 2;
|
||||
|
||||
char sub[2];
|
||||
|
@ -193,6 +193,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE
|
||||
if (strncmp (p, SIGNATURE_PKZIP_V1, 7) != 0 && strncmp (p, SIGNATURE_PKZIP_V2, 8) != 0) return PARSER_SIGNATURE_UNMATCHED;
|
||||
|
||||
pkzip->version = 1;
|
||||
|
||||
if (strlen (p) == 9) pkzip->version = 2;
|
||||
|
||||
char sub[2];
|
||||
|
Loading…
Reference in New Issue
Block a user