1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-15 17:51:06 +00:00
dragonflydb-dragonfly/src/facade/tls_error.cc

26 lines
376 B
C++
Raw Normal View History

#include "facade/tls_error.h"
#include <openssl/err.h>
#include <string_view>
#include "base/logging.h"
#ifdef DFLY_USE_SSL
void facade::PrintSSLError() {
ERR_print_errors_cb(
[](const char* str, size_t len, void* u) {
LOG(ERROR) << std::string_view(str, len);
return 1;
},
nullptr);
}
#else
void facade::PrintSSLError() {
}
#endif