forked from OSchip/llvm-project
Provide an SSL context ref in case SLL is needed for communication.
llvm-svn: 165856
This commit is contained in:
parent
4732872bd2
commit
01db0c6823
|
@ -189,7 +189,9 @@ RNBSocket::ConnectToService()
|
||||||
// Disconnect from any previous connections
|
// Disconnect from any previous connections
|
||||||
Disconnect(false);
|
Disconnect(false);
|
||||||
|
|
||||||
if (::lockdown_secure_checkin (&m_fd, NULL, NULL, NULL) != kLDESuccess)
|
SSLContextRef ssl_ctx;
|
||||||
|
bzero(&ssl_ctx, sizeof(ssl_ctx));
|
||||||
|
if (::lockdown_secure_checkin (&m_fd, &ssl_ctx, NULL, NULL) != kLDESuccess)
|
||||||
{
|
{
|
||||||
DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_secure_checkin(&m_fd, NULL, NULL, NULL) failed");
|
DNBLogThreadedIf(LOG_RNB_COMM, "::lockdown_secure_checkin(&m_fd, NULL, NULL, NULL) failed");
|
||||||
m_fd = -1;
|
m_fd = -1;
|
||||||
|
|
Loading…
Reference in New Issue