Summary: This diff implements OpenSSL support in the network stack. Currently SSL support is only enabled for Bolt connections, support for RPC connections will be added in another diff. Reviewers: buda, teon.banek Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1328
14 lines
285 B
C++
14 lines
285 B
C++
#include <openssl/err.h>
|
|
|
|
#include "communication/helpers.hpp"
|
|
|
|
namespace communication {
|
|
|
|
const std::string SslGetLastError() {
|
|
char buff[2048];
|
|
auto err = ERR_get_error();
|
|
ERR_error_string_n(err, buff, sizeof(buff));
|
|
return std::string(buff);
|
|
}
|
|
} // namespace communication
|