Improved TLS error handling and teach getpeerinfo about cipher of each connection

This commit is contained in:
Duke Leto
2021-01-24 15:06:34 -05:00
parent f0e242632d
commit 1488a03f1c
5 changed files with 49 additions and 47 deletions

View File

@@ -208,6 +208,7 @@ public:
uint64_t nServices;
bool fTLSEstablished;
bool fTLSVerified;
std::string tls_cipher;
int64_t nLastSend;
int64_t nLastRecv;
int64_t nTimeConnected;
@@ -279,8 +280,9 @@ public:
class CNode
{
public:
// OpenSSL
// TLS via WolfSSL
SSL *ssl;
std::string tls_cipher;
// socket
uint64_t nServices;