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>
Thu, 6 Feb 2020 12:13:47 +0000 (12:13 +0000)
commit104a733df65dfd8c3dd110de9bd56f6ebfc8f2f6
tree39f900493f9835faf7c42c5752efa6f3a13c9be4
parent5ce87e11de21835255ea11cc330ebf9931e21329
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)
test/sslapitest.c