mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
31 lines
509 B
C++
31 lines
509 B
C++
#include <Common/config.h>
|
|
|
|
#if USE_SSL
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionsAES.h>
|
|
|
|
namespace
|
|
{
|
|
|
|
struct DecryptMySQLModeImpl
|
|
{
|
|
static constexpr auto name = "aes_decrypt_mysql";
|
|
static constexpr auto compatibility_mode = OpenSSLDetails::CompatibilityMode::MySQL;
|
|
static constexpr bool use_null_when_decrypt_fail = false;
|
|
};
|
|
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
|
|
REGISTER_FUNCTION(AESDecryptMysql)
|
|
{
|
|
factory.registerFunction<FunctionDecrypt<DecryptMySQLModeImpl>>();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|