aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc
diff options
context:
space:
mode:
authorJochen Neumeister <joneum@FreeBSD.org>2024-05-24 16:08:52 +0000
committerJochen Neumeister <joneum@FreeBSD.org>2024-05-24 16:15:44 +0000
commit3c10befc00dadfb8ff0db2e9016ef092df855345 (patch)
tree750fd5f30964323d1f52e0213e507e3f8bb50da1 /databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc
parentc5bbdddbac5e1cc8ee1e0ca1710c85914cec040a (diff)
Diffstat (limited to 'databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc')
-rw-r--r--databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc b/databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc
new file mode 100644
index 000000000000..58ee2f44c3a6
--- /dev/null
+++ b/databases/mysql84-server/files/patch-sql_auth_sha2__password__common.cc
@@ -0,0 +1,11 @@
+--- sql/auth/sha2_password_common.cc.orig 2024-04-10 06:26:28 UTC
++++ sql/auth/sha2_password_common.cc
+@@ -102,7 +102,7 @@ bool SHA256_digest::retrieve_digest(unsigned char *dig
+ return true;
+ }
+ m_ok = EVP_DigestFinal_ex(md_context, m_digest, nullptr);
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L
+ EVP_MD_CTX_cleanup(md_context);
+ #else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
+ EVP_MD_CTX_reset(md_context);