BUILD: fix ssl_sample.c when building against BoringSSL
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 20 Jun 2020 18:38:37 +0000 (23:38 +0500)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 26 Jun 2020 08:33:38 +0000 (10:33 +0200)
commitf44d1555155b817bb9c5dbfbc2638901627484ca
treef3502704406feb9016e66fa250223e392835e4db
parent8f600c833a0a3b684fc04f064ea2d066713d8543
BUILD: fix ssl_sample.c when building against BoringSSL

BoringSSL does not have X509_get_X509_PUBKEY
let our emulation level define that for BoringSSL as well

Build log:

src/ssl_sample.o: In function `smp_fetch_ssl_x_key_alg':
/home/travis/build/haproxy/haproxy/src/ssl_sample.c:592: undefined reference to `X509_get_X509_PUBKEY'
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:860: recipe for target 'haproxy' failed
make: *** [haproxy] Error 1

travis-ci: https://travis-ci.com/github/haproxy/haproxy/jobs/351670996
include/haproxy/openssl-compat.h