|
|
@ -329,6 +329,9 @@ int rc;
|
|
|
|
d->m_ssl = 0;
|
|
|
|
d->m_ssl = 0;
|
|
|
|
return rc;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
|
|
|
|
|
|
|
d->kossl->SSL_set_tlsext_host_name(d->m_ssl, d->proxyPeer.ascii());
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
rc = d->kossl->SSL_accept(d->m_ssl);
|
|
|
|
rc = d->kossl->SSL_accept(d->m_ssl);
|
|
|
|
if (rc == 1) {
|
|
|
|
if (rc == 1) {
|
|
|
@ -424,6 +427,9 @@ int rc;
|
|
|
|
d->m_ssl = 0;
|
|
|
|
d->m_ssl = 0;
|
|
|
|
return rc;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
|
|
|
|
|
|
|
|
d->kossl->SSL_set_tlsext_host_name(d->m_ssl, d->proxyPeer.ascii());
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
connect_again:
|
|
|
|
connect_again:
|
|
|
|
rc = d->kossl->SSL_connect(d->m_ssl);
|
|
|
|
rc = d->kossl->SSL_connect(d->m_ssl);
|
|
|
|