mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
31 lines
468 B
C++
31 lines
468 B
C++
#include "config.h"
|
|
|
|
#if USE_SSL
|
|
|
|
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionsAES.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
namespace
|
|
{
|
|
|
|
struct DecryptImpl
|
|
{
|
|
static constexpr auto name = "decrypt";
|
|
static constexpr auto compatibility_mode = OpenSSLDetails::CompatibilityMode::OpenSSL;
|
|
static constexpr bool use_null_when_decrypt_fail = false;
|
|
};
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(Decrypt)
|
|
{
|
|
factory.registerFunction<FunctionDecrypt<DecryptImpl>>();
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|