[MDEV-29817] Issues with handling options for SSL CRLs (and some others) Created: 2022-10-18 Updated: 2022-11-23 Resolved: 2022-11-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server, SSL |
| Affects Version/s: | 10.4.26, 10.5.17, 10.10.1, 10.6.10, 10.7.6, 10.8.5, 10.9.3, 10.11 |
| Fix Version/s: | 10.11.2, 10.3.38, 10.4.28, 10.5.19, 10.6.12, 10.7.8, 10.9.5, 10.10.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Julius Goryavsky | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
Looking for a problem that leads to instability of ssl tests for Galera, I seem to have found an issue in the description of the ssl options for the client and server in the sslopt-longopts.h file. In this snippet:
the OPT_SSL_KEY option code is repeated three times, although this is probably the result of copy-paste. Also a question about assigning "opt_ssl_crl= NULL;" in the sslopt-case.h - perhaps (not sure) there may be a memory leak. Also, in several client files, a common fragment similar to this is repeated:
There is a possibility that sometimes the option MARIADB_OPT_TLS_VERSION and/or MYSQL_OPT_SSL_VERIFY_SERVER_CERT is forgotten there (mysqlcheck.c, mysqltest.cc, mysqlslap.c) Also in slave.cc there is a fragment with an explicit repetition:
Probably there in the first case there should be the MYSQL_OPT_SSL_CRL. option. And perhaps MARIADB_OPT_TLS_VERSION is forgotten here. And mariadb_lib.c file, this fragment:
"mysql->options.ssl_cipher" probably should be replaced to "mysql->options.extension->ssl_crl" |
| Comments |
| Comment by Jan Lindström (Inactive) [ 2022-10-27 ] |
|
serg Can you please review this change. I do not know this part of the codebase. |
| Comment by Vladislav Vaintroub [ 2022-11-22 ] |
|
Looks good to me. Ok to push |
| Comment by Julius Goryavsky [ 2022-11-22 ] |
|
Fixed, https://github.com/MariaDB/server/commit/f0820400ee427f1398034c6881c803e42cfd249e |