[CONC-340] ssl-* options in config have no effect without calling mysql_ssl_set() Created: 2018-06-07 Updated: 2020-08-25 Resolved: 2018-07-11 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
This is the corresponding MariaDB Connector/C bug for the following MDEV issues: Basically, if the application doesn't call mysql_ssl_set(), but there are SSL options defined for the client in the configuration file, SSL still gets enabled when using MySQL's connector, but it does not when using MariaDB Connector/C. The steps on |
| Comments |
| Comment by Georg Richter [ 2018-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Geoff, can you please provide the version number of Connector/C? The bug is not reproducable with latest C/C 3.0.5. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I didn't explicitly install any MariaDB Connector/C package when I reproduced this. I reproduced the issue with the libmysqlclient.so from the MariaDB-compat 10.2.15 package on RHEL 7. Wlad said that libmysqlclient.so in MariaDB 10.2 is actually MariaDB Connector/C. I'm not sure what version of C/C is included in that version of the server though. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Since it isn't entirely obvious from the documentation or release notes which version of Connector/C is bundled with MariaDB Server 10.2.15, I submitted | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2018-06-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Can't reproduce issue with attached test case: Output:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-06-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I modified your test program to work in my test environment:
And it also works properly:
But the resulting binary is linked to /lib64/libmariadb.so.3:
While perl-DBD-MySQL requires libmysqlclient.so.18:
Would libmariadb.so.3 behave differently than libmysqlclient.so.18 in this context? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-06-26 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Do you have any feedback on my question above?
Is libmysqlclient.so.18 from the 10.2 MariaDB-compat package actually using MariaDB Connector/C, just like libmariadb.so.3 from 10.2, or is that libmysqlclient.so.18 still some version of libmysqlclient? Thanks! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Julien Fritsch [ 2018-07-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
georg ? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Georg Richter [ 2018-07-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MariaDB Connector/C doesn't provide a libmysql.so.18. List of shared objects (without plugins) after build with cmake option -DWITH_MYSQL_COMPAT=ON:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-07-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
According to the comments on |