summaryrefslogtreecommitdiff
path: root/app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch')
-rw-r--r--app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch b/app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch
new file mode 100644
index 000000000000..66d85d45c0b2
--- /dev/null
+++ b/app-crypt/hashcat/files/hashcat-6.2.4-brainless.patch
@@ -0,0 +1,41 @@
+https://github.com/hashcat/hashcat/pull/2961#event-5251978340
+From 0d5aed883b45cf3c218cb71916b08d56ae3d25a3 Mon Sep 17 00:00:00 2001
+From: Miezhiko <Miezhiko@gmail.com>
+Date: Thu, 2 Sep 2021 17:52:27 +0400
+Subject: [PATCH] Fix compilation without brain
+
+Signed-off-by: Miezhiko <Miezhiko@gmail.com>
+---
+ src/hashcat.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/hashcat.c b/src/hashcat.c
+index 163d7408d..bf936ccc0 100644
+--- a/src/hashcat.c
++++ b/src/hashcat.c
+@@ -922,7 +922,10 @@ static int outer_loop (hashcat_ctx_t *hashcat_ctx)
+
+ // clean up
+
++ #ifdef WITH_BRAIN
+ brain_ctx_destroy (hashcat_ctx);
++ #endif
++
+ bitmap_ctx_destroy (hashcat_ctx);
+ combinator_ctx_destroy (hashcat_ctx);
+ cpt_ctx_destroy (hashcat_ctx);
+@@ -1090,13 +1093,13 @@ int hashcat_session_init (hashcat_ctx_t *hashcat_ctx, const char *install_folder
+ }
+ }
+ #endif
+- #endif
+
+ /**
+ * brain
+ */
+
+ if (brain_ctx_init (hashcat_ctx) == -1) return -1;
++ #endif
+
+ /**
+ * logfile