opnsense-ports/databases/mysql80-server/files/patch-mysys__ssl_my__md5.cc
Franco Fichtner 7ddbb7c0f1 */*: sync with upstream
Taken from: HardenedBSD
2018-05-13 16:20:27 +02:00

11 lines
469 B
C++

--- mysys_ssl/my_md5.cc.orig 2018-04-08 06:44:49 UTC
+++ mysys_ssl/my_md5.cc
@@ -56,7 +56,7 @@ static void my_md5_hash(unsigned char *d
int compute_md5_hash(char *digest, const char *buf, int len) {
int retval = 0;
int fips_mode = 0;
-#if !defined(HAVE_WOLFSSL)
+#if !defined(HAVE_WOLFSSL) && !defined(LIBRESSL_VERSION_NUMBER)
fips_mode = FIPS_mode();
#endif /* HAVE_WOLFSSL */
/* If fips mode is ON/STRICT restricted method calls will result into abort,