don't require OpenSSL SNI to pass hostname to ssl functions (#22921)

Patch by Donald Stufft.