mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
78fc36ca49
This makes the target location consistent with other auto-generated files like config_formats.h, config_core.h, and config_functions.h and simplifies the build of clickhouse_common.
24 lines
561 B
C++
24 lines
561 B
C++
#pragma once
|
|
|
|
#include "config.h"
|
|
|
|
#if USE_SSL
|
|
# include <base/types.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Encodes `text` and returns it.
|
|
std::string encodeSHA256(std::string_view text);
|
|
std::string encodeSHA256(const void * text, size_t size);
|
|
/// `out` must be at least 32 bytes long.
|
|
void encodeSHA256(std::string_view text, unsigned char * out);
|
|
void encodeSHA256(const void * text, size_t size, unsigned char * out);
|
|
|
|
/// Returns concatenation of error strings for all errors that OpenSSL has recorded, emptying the error queue.
|
|
String getOpenSSLErrors();
|
|
|
|
}
|
|
#endif
|