mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
32 lines
515 B
C++
32 lines
515 B
C++
#if !defined(ARCADIA_BUILD)
|
|
# include <Common/config.h>
|
|
#endif
|
|
|
|
#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;
|
|
};
|
|
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerFunctionAESDecryptMysql(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionDecrypt<DecryptMySQLModeImpl>>();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|