mirror of https://github.com/debauchee/barrier.git
Removed test string #4522
This commit is contained in:
parent
71dc472a64
commit
b24eb2b724
|
@ -178,8 +178,6 @@ SecureSocket::loadCertificates(const char* filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char test[] = "/Users/xinyu/serverCertificateFingerprint.txt";
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SecureSocket::initContext(bool server)
|
SecureSocket::initContext(bool server)
|
||||||
{
|
{
|
||||||
|
@ -210,8 +208,11 @@ SecureSocket::initContext(bool server)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!server) {
|
if (!server) {
|
||||||
//void* p = reinterpret_cast<void*>(const_cast<char*>(m_certFingerprint.c_str()));
|
void* p = reinterpret_cast<void*>(const_cast<char*>(m_certFingerprint.c_str()));
|
||||||
SSL_CTX_set_cert_verify_callback(m_ssl->m_context, verifyCertFingerprint, (void*)test);
|
SSL_CTX_set_cert_verify_callback(
|
||||||
|
m_ssl->m_context,
|
||||||
|
verifyCertFingerprint,
|
||||||
|
p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue