[CONC-272] Build failure with OpenSSL 0.9.8 Created: 2017-07-26 Updated: 2023-10-18 Resolved: 2017-07-27 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Evan Miller | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
macOS 10.12.6 |
||
| Description |
|
Building against OpenSSL 0.9.8zh, I get the following error:
From the man page:
The following patch fixes things:
|
| Comments |
| Comment by Georg Richter [ 2017-07-27 ] | ||||||||||
|
Connector/C requires OpenSSL 1.0.1 or later. Please read | ||||||||||
| Comment by Evan Miller [ 2017-07-27 ] | ||||||||||
|
Hi, I realize old versions of OpenSSL are not supported; however, Mac OS X still ships with 0.9.8, and so I have to manually apply this patch on new releases of Connector/C. In addition, the Connector/C code has "#if OPENSSL_VERSION_NUMBER < 0x10000000L" in other places, so the provided patch isn't breaking new ground in terms of supporting 0.9.x. I humbly ask you to reconsider. Thanks. | ||||||||||
| Comment by Sergei Golubchik [ 2017-07-27 ] | ||||||||||
|
The last release of OpenSSL 0.9.8 was at December 3, 2015. There were 45 CVE ids for OpenSSL in 2016/2017, and while some of them don't apply to 0.9.8, many do. And they aren't and won't ever be fixed in 0.9.8. This is, basically, why we don't want to encourage using MariaDB with OpenSSL 0.9.8. If I'd have just one Mac to run MariaDB on, I'd either install newer OpenSSL (with all these vulnerabilities fixed) or I'd simply edited system openssl.h, adding something like
or I'd patched my copy of MariaDB with your patch. if I'd had a fleet of Macs, I'd, probably, valued security higher, and installed newer OpenSSL. | ||||||||||
| Comment by Evan Miller [ 2017-07-27 ] | ||||||||||
|
Thanks for the reply. This is for shipping software; I'd prefer to link against the Mac OS X system OpenSSL, and let Apple worry about keeping OpenSSL up-to-date via system updates, rather than provide OpenSSL separately, in which case I have to keep abreast of OpenSSL security issues myself. If the issue remains closed, I will continue to apply the patch. If it makes any difference, the patch can be reduced to one line based on your suggestion:
I know you want to discourage use of OpenSSL 0.9.8, but the reality is that it's installed on every Mac and Apple is forced to keep fixing its security issues. In light of this situation, it would be great if Connector/C would compile against 0.9.8, even if the support is only unofficial. |