mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Drop the raw SHA-0 format, it's unlikely anyone will ever need it.
Obtained from: https://github.com/magnumripper/JohnTheRipper/commit/40f0aae
This commit is contained in:
parent
e15eb98209
commit
e45ef3e5e0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495030
@ -59,7 +59,8 @@ OPTIONS_DEFINE= DOCS #OPENMP
|
||||
#OPENMP_USES= compiler:openmp
|
||||
|
||||
post-extract:
|
||||
@${RM} ${WRKSRC}/pfx_fmt_plug.c ${WRKSRC}/ssh_fmt_plug.c
|
||||
@${RM} ${WRKSRC}/pfx_fmt_plug.c ${WRKSRC}/rawSHA0_fmt_plug.c \
|
||||
${WRKSRC}/ssh_fmt_plug.c \
|
||||
|
||||
post-patch:
|
||||
# Replace methods and types that were marked deprecated by OpenSSL 0.9.7
|
||||
|
@ -1,27 +0,0 @@
|
||||
--- rawSHA0_fmt_plug.c.orig 2014-09-19 16:40:51 UTC
|
||||
+++ rawSHA0_fmt_plug.c
|
||||
@@ -6,6 +6,10 @@
|
||||
* Based on Raw-SHA1, but this is OpenSSL only.
|
||||
*/
|
||||
|
||||
+#include <openssl/sha.h>
|
||||
+
|
||||
+#ifndef OPENSSL_NO_SHA0
|
||||
+
|
||||
#if FMT_EXTERNS_H
|
||||
extern struct fmt_main fmt_rawSHA_0;
|
||||
#elif FMT_REGISTERS_H
|
||||
@@ -13,7 +17,6 @@ john_register_one(&fmt_rawSHA_0);
|
||||
#else
|
||||
|
||||
#include <string.h>
|
||||
-#include <openssl/sha.h>
|
||||
|
||||
#include "arch.h"
|
||||
#include "misc.h"
|
||||
@@ -208,3 +211,5 @@ struct fmt_main fmt_rawSHA_0 = {
|
||||
};
|
||||
|
||||
#endif /* plugin stanza */
|
||||
+
|
||||
+#endif /* OPENSSL_NO_SHA0 */
|
Loading…
Reference in New Issue
Block a user