mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
78fc36ca49
This makes the target location consistent with other auto-generated files like config_formats.h, config_core.h, and config_functions.h and simplifies the build of clickhouse_common.
30 lines
406 B
C++
30 lines
406 B
C++
#include "config.h"
|
|
|
|
#if USE_SSL
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionsAES.h>
|
|
|
|
namespace
|
|
{
|
|
|
|
struct EncryptImpl
|
|
{
|
|
static constexpr auto name = "encrypt";
|
|
static constexpr auto compatibility_mode = OpenSSLDetails::CompatibilityMode::OpenSSL;
|
|
};
|
|
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
|
|
REGISTER_FUNCTION(Encrypt)
|
|
{
|
|
factory.registerFunction<FunctionEncrypt<EncryptImpl>>();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|