Added DaemonClient.

This commit is contained in:
XMRig 2019-04-12 03:25:21 +07:00
parent 0d496aaf2f
commit 62012a1a50
20 changed files with 610 additions and 122 deletions

View file

@ -96,7 +96,7 @@ void xmrig::HttpsClient::read(const char *data, size_t size)
X509 *cert = SSL_get_peer_certificate(m_ssl);
if (!verify(cert)) {
X509_free(cert);
return close();
return close(UV_EPROTO);
}
X509_free(cert);
@ -142,7 +142,7 @@ void xmrig::HttpsClient::flush()
result = uv_try_write(stream(), &buf, 1) == buf.len;
if (!result) {
close();
close(UV_EIO);
}
}