summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-08-02 02:13:03 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-08-02 02:13:03 +0200
commit4945033d7f4438ec0baf76975ffd07208630d685 (patch)
tree6352a1adbeb1fa9a08a98a5c0db16049d88ffa84 /20018_all_mysql-8.0.17-fix-libressl-support.patch
parentFix custom plugin location for MariaDB >=10.4 (diff)
downloadmysql-extras-4945033d7f4438ec0baf76975ffd07208630d685.tar.gz
mysql-extras-4945033d7f4438ec0baf76975ffd07208630d685.tar.bz2
mysql-extras-4945033d7f4438ec0baf76975ffd07208630d685.zip
Add initial MySQL v8.0 patch setmysql-extras-20190802-0014Z
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to '20018_all_mysql-8.0.17-fix-libressl-support.patch')
-rw-r--r--20018_all_mysql-8.0.17-fix-libressl-support.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/20018_all_mysql-8.0.17-fix-libressl-support.patch b/20018_all_mysql-8.0.17-fix-libressl-support.patch
new file mode 100644
index 0000000..44596cf
--- /dev/null
+++ b/20018_all_mysql-8.0.17-fix-libressl-support.patch
@@ -0,0 +1,12 @@
+--- a/sql/auth/sha2_password_common.cc
++++ b/sql/auth/sha2_password_common.cc
+@@ -101,7 +101,8 @@ bool SHA256_digest::retrieve_digest(unsigned char *digest,
+ DBUG_RETURN(true);
+ }
+ m_ok = EVP_DigestFinal_ex(md_context, m_digest, NULL);
+-#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L
++#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L || \
++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x02070000fL)
+ EVP_MD_CTX_cleanup(md_context);
+ #else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
+ EVP_MD_CTX_reset(md_context);