aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/aes_decrypt_mysql.cpp
blob: b3fa71b006e4c6ea833bc629d3ddc5d1225874bc (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
30
#include "clickhouse_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