tikv / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
120 stars 93 forks source link

Check OPENSSL_NO_SM4 before using sm4 encryption #302

Closed jiayang-zheng closed 2 years ago

jiayang-zheng commented 2 years ago

In some env, user installed openssl by yum install, and the openssl software may complied with OPENSSL_NO_SM4 flag, so although the version is >= 1.1.1, but we still could not use sm4 in that situation.

Signed-off-by: Jarvis Zheng jiayang@hust.edu.cn

ethercflow commented 2 years ago

@jiayang-zheng @Connor1996 @tabokie As cloud use tikv-6.1, should we cherry pick this fix to 6.4.tikv?

jiayang-zheng commented 2 years ago

We have #303 to cherry pick this fix to 6.4.tikv. I will ask @Connor1996 to take a look. Thanks @ethercflow