aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/encrypt.cpp
blob: 92e77420acf3633634946dce1f7f9b5c8ea0fc5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "clickhouse_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