mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 04:22:03 +00:00
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 DB
|
|
{
|
|
|
|
namespace
|
|
{
|
|
|
|
struct EncryptImpl
|
|
{
|
|
static constexpr auto name = "encrypt";
|
|
static constexpr auto compatibility_mode = OpenSSLDetails::CompatibilityMode::OpenSSL;
|
|
};
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(Encrypt)
|
|
{
|
|
factory.registerFunction<FunctionEncrypt<EncryptImpl>>();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|