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

Enable SNI Support #25

Closed
wants to merge 1 commit into from
Closed

Conversation

apeschel
Copy link

This commit enables SNI support, as per

https://blogs.oracle.com/meena/entry/apachebench_ab_and_sni

@apeschel apeschel mentioned this pull request Aug 25, 2015
@JoeDog
Copy link
Owner

JoeDog commented Aug 26, 2015

Aaron,

This looks good but what about support for older versions of openssl? Can I
safely address that like this:

#if defined(SSL_CTRL_SET_TLSEXT_HOSTNAME)
SSL_ctrl(C->ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, TLSEXT_NAMETYPE_host_name,
(char _)servername);
#endif/_SSL_CTRL_SET_TLSEXT_HOSTNAME*/

Jeff

On Tue, Aug 25, 2015 at 7:36 PM, Aaron Peschel notifications@github.com
wrote:

This commit enables SNI support, as per

https://blogs.oracle.com/meena/entry/apachebench_ab_and_sni

You can view, comment on, or merge this pull request online at:

#25
Commit Summary

  • Enable SNI Support

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#25.

@JoeDog
Copy link
Owner

JoeDog commented Aug 26, 2015

Aaron,

I'm not going to implement the url.* changes. The whole idea behind
encapsulation is to disallow direct access to those variables. In client.c
we get the hostname with the getter:

if (SSL_initialize(C, url_get_hostname(U))==FALSE) {
  return FALSE;
}

Regards,
J.

On Wed, Aug 26, 2015 at 9:25 AM, Jeff Fulmer jeff@joedog.org wrote:

Aaron,

This looks good but what about support for older versions of openssl? Can
I safely address that like this:

#if defined(SSL_CTRL_SET_TLSEXT_HOSTNAME)
SSL_ctrl(C->ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME,
TLSEXT_NAMETYPE_host_name, (char _)servername);
#endif/_SSL_CTRL_SET_TLSEXT_HOSTNAME*/

Jeff

On Tue, Aug 25, 2015 at 7:36 PM, Aaron Peschel notifications@github.com
wrote:

This commit enables SNI support, as per

https://blogs.oracle.com/meena/entry/apachebench_ab_and_sni

You can view, comment on, or merge this pull request online at:

#25
Commit Summary

  • Enable SNI Support

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#25.

@apeschel
Copy link
Author

@JoeDog Your define guard seems like a good solution for backwards compatibility. I'll spend a bit of time to see if there is any other option, but your suggestion is probably the best.

The url.* objection is reasonable - I just didn't notice the getter while trying to get the code to compile.

This commit enables SNI support for OpenSSL 1.0.0+
@apeschel
Copy link
Author

PR has been merged in by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants