On 19/07/24 11:59, Robert Fuhrer via Postfix-users wrote:
Where does that number come from? It needs to be a version that
introduces all the the MYSQL_OPT_SSL_XXX features that Postfix
needs. This is the preferred API, and it won't be removed in another
10 years.
The format of MYSQL_VERSION_ID seems to be Mmmss (“M” == “major”, “mm”
== “minor version”, “ss” == “sub-version”).
According to the doc page
<https://dev.mysql.com/doc/c-api/8.4/en/mysql-ssl-set.html> I linked,
the preferred API was introduced in v8.0.35.
It might be more hygienic to define a macro symbol like
MYSQL_TLS_NEW_OPTIONS_API_VERSION, whose value is 80035. Of course that
would have to be done in the PostFix source, but it might make clear
what the #if test is dependent on.
Just to throw another wrench in the works, MariaDB lists mysql_options()
as deprecated in MariaDB Connector/C 3.0 and recommends mysql_optionsv()
instead:
https://mariadb.com/kb/en/mysql_options/
For now it should work, but we may end up needing to patch postfix once
again in the near future for this.
Peter
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org