Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore -DWITH_SSL=system support for OpenSSL versions <= 0.9.8k.
MySQL 5.6.17 introduced support for block encryption modes and initialization vectors for AES_ENCRYPT/AES_DECRYPT functions. This change broke backwards compatibility for older OpenSSL system versions, as the ECB mode cipher there disagrees with recent OpenSSL versions whether it need initialization vectors or not. As AES functions directly check with OpenSSL for IV requirement and provide a corresponding function signature, these differences result in SQL incompatibilities. Fixed by checking, for OpenSSL, whether ECB mode is in use whenever OpenSSL reports required IV length > 0, and assuming IV length of zero instead.
- Loading branch information