Show TLS version.
This commit is contained in:
parent
2f3939396e
commit
bc9130ded3
6 changed files with 47 additions and 20 deletions
|
@ -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 ¶ms, int *code)
|
||||
{
|
||||
if (!params.IsObject()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue