Fix no-tls1_3
authorMatt Caswell <matt@openssl.org>
Tue, 4 Feb 2020 17:11:07 +0000 (17:11 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 12 Feb 2020 10:51:54 +0000 (10:51 +0000)
commit2ba3e6538567fffec1f169668a571c8ad8f766fa
treedac7c3ebcaa425d68e2d974540e529a852512065
parentff6d0a6313a9082965f798a3102539b8d83a6a39
Fix no-tls1_3

The hostname_cb in sslapitest.c was originally only defined if TLSv1.3
was enabled. A recently added test now uses this unconditionally, so we
move the function implementation earlier in the file, and always compile
it in.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11014)

(cherry picked from commit 104a733df65dfd8c3dd110de9bd56f6ebfc8f2f6)
test/sslapitest.c