Commit Graph

1 Commits

Author SHA1 Message Date
Honza Horak
e33f68c253 Make MySQL compile with openssl 3.x without FIPS properly implemented
This change takes some pieces from MariaDB, including compat_ssl.h and
changes in my_md5.cc.

MySQL utilizes FIPS_mode() and FIPS_mode_set() functions that are not
available in OpenSSL 3.x any more. This patch only mocks the call of
those functions, returning 0 every time, which effectively makes usage
of those functions non working. For making the MySQL build with
OpenSSL 3.x this seems to be enough though.

---

This commit has been cherry-picked from CentOS Stream 9
  51e2abe584
and adjusted to be applicable to Fedora Rawhide
2024-02-05 16:59:56 +01:00