mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
da5a2e2db0
Physical merge conflicts: - src/Common/ZooKeeper/ZooKeeperImpl.cpp - src/Core/config_core.h.in - src/Functions/FunctionsAES.h - src/Functions/config_functions.h.in - src/configure_config.cmake Logical merge conflicts: - Functions/tryDecrypt.cpp
31 lines
502 B
C++
31 lines
502 B
C++
#include "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
|