#include #include #if USE_SSL # include # include namespace { struct TryDecryptImpl { static constexpr auto name = "tryDecrypt"; static constexpr auto compatibility_mode = OpenSSLDetails::CompatibilityMode::OpenSSL; static constexpr bool use_null_when_decrypt_fail = true; }; } namespace DB { REGISTER_FUNCTION(TryDecrypt) { factory.registerFunction>( "Similar to `decrypt`, but returns NULL if decryption fails because of using the wrong key."); } } #endif