We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090c3d9 commit e721065Copy full SHA for e721065
encryption/encryption.cc
@@ -107,9 +107,7 @@ const EVP_CIPHER* GetEVPCipher(EncryptionMethod method) {
107
// return EVP_aes_256_ecb();
108
case EncryptionMethod::kSM4_CTR:
109
#if OPENSSL_VERSION_NUMBER < 0x1010100fL || defined(OPENSSL_NO_SM4)
110
- return Status::InvalidArgument(
111
- "Unsupport SM4 encryption method under OpenSSL version: " +
112
- std::string(OPENSSL_VERSION_TEXT));
+ return nullptr;
113
#else
114
// Openssl support SM4 after 1.1.1 release version.
115
return EVP_sm4_ctr();
0 commit comments