1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/security/john/files/patch-rawSHA0__fmt__plug.c
Alexey Dokuchaev 571d2ed220 - Fix the build against LibreSSL: put back safety belts added in r382632,
expanding them to cover newly added files, and augment OPENSSL_NO_SHA0
  patch to avoid linking error
- Restore `-flax-vector-conversions' option required on pre-Clang systems
  that was erroneously removed in r425958

PR:	214459
2016-11-14 06:41:47 +00:00

28 lines
550 B
C

--- 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 */