Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client support for TLS SNI extension #54

Merged
merged 3 commits into from Aug 17, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions resip/stack/ssl/TlsConnection.cxx
Expand Up @@ -207,10 +207,10 @@ TlsConnection::checkState()
{
InfoLog( << "TLS handshake starting (client mode)" );
/* OpenSSL version < 0.9.8f does not support SSL_set_tlsext_host_name() */
#if defined(SSL_set_tlsext_host_name)
#if defined(SSL_set_tlsext_host_name)
DebugLog ( << "TLS SNI extension in Client Hello: " << who().getTargetDomain();
SSL_set_tlsext_host_name(mSsl,who().getTargetDomain().c_str()); // set the SNI hostname
DebugLog ( << "TLS SNI extension in Client Hello: " << who().getTargetDomain().c_str());
#endif
#endif
SSL_set_connect_state(mSsl);
mTlsState = Handshaking;
}
Expand Down