wolfssl: adjust to new API in v4.2.0
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Tue, 29 Oct 2019 21:24:16 +0000 (18:24 -0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 1 Nov 2019 17:42:18 +0000 (18:42 +0100)
commit465f8dc31d85cdd54369a5650d5daa1d3995dfaa
tree32286125df8fc4c997d418c31cb1426de6f3853c
parent3b06c65965a20c1893392e95c163a83e7ffa407a
wolfssl: adjust to new API in v4.2.0

WolfSSL has recently added many openssl 1.1+ calls, including
TLS_server_method & TLS_client_method, which were being redefined,
causing compilation failure:
ustream-openssl.c:113:0: error: "TLS_server_method" redefined [-Werror]
ustream-openssl.c:114:0: error: "TLS_client_method" redefined [-Werror]

Only define the symbols if not previously defined.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
ustream-openssl.c