MINOR: ssl: make the ssl_fc_sni() sample-fetch function always available
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Nov 2021 18:12:54 +0000 (19:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 6 Nov 2021 08:20:07 +0000 (09:20 +0100)
commit579259d150d50468e7ad8efe917910c090483cce
treef64b3bbe716b1df449d5914a810732d72e3fdc8f
parent2ed7350f4ca0ce97ceae8fa45b475e1fe1ca8165
MINOR: ssl: make the ssl_fc_sni() sample-fetch function always available

Its definition is enclosed inside an ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
which is defined since OpenSSL 0.9.8. Having it conditioned like this
prevents us from using it by default in a log format, which could cause
an error on an old or exotic library.

Let's just always define it and make the sample fetch fail to return
anything on such libs instead.
src/ssl_sample.c