Show TLS version.

This commit is contained in:
XMRig 2018-09-16 06:35:49 +03:00
parent 2f3939396e
commit bc9130ded3
6 changed files with 47 additions and 20 deletions

View file

@ -186,9 +186,15 @@ bool Client::disconnect()
}
bool Client::isTLS() const
const char *Client::tlsVersion() const
{
return m_pool.isTLS() && m_tls;
# ifndef XMRIG_NO_TLS
if (isTLS()) {
return m_tls->tlsVersion();
}
# endif
return nullptr;
}
@ -277,6 +283,16 @@ bool Client::isCriticalError(const char *message)
}
bool Client::isTLS() const
{
# ifndef XMRIG_NO_TLS
return m_pool.isTLS() && m_tls;
# else
return false;
# endif
}
bool Client::parseJob(const rapidjson::Value &params, int *code)
{
if (!params.IsObject()) {