ports/databases/mysql84-server/files/patch-mysys_my__kdf.cc
Jochen Neumeister 3c10befc00 databases/mysql84-{server|client}: add new Ports
Welcome MySQL 8.4

What is new in MySQL8.4 since MySQL 8.0:
https://dev.mysql.com/doc/refman/8.4/en/mysql-nutshell.html

HINT: MySQL8.2+ supports only 64-bit platforms!!!

special thanks for the majority of the work on this port: samm aka Alex
S.
2024-05-24 18:15:44 +02:00

20 lines
822 B
C++

--- mysys/my_kdf.cc.orig 2024-04-10 06:26:28 UTC
+++ mysys/my_kdf.cc
@@ -57,7 +57,7 @@ int create_kdf_key(const unsigned char *key, const uns
std::unique_ptr<Key_derivation_function> kdf_function;
if (kdf_name == "hkdf") {
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
kdf_function = std::make_unique<Key_hkdf_function>(kdf_options);
#else
return 1;
@@ -72,7 +72,7 @@ int create_kdf_key(const unsigned char *key, const uns
return kdf_function->derive_key(key, key_length, rkey, rkey_size);
}
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
Key_hkdf_function::Key_hkdf_function(vector<string> *kdf_options) {
kdf_options_ = {kdf_options};
}