]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: build without openssl still broken
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Aug 2017 13:35:19 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Aug 2017 17:21:31 +0000 (19:21 +0200)
commit50bc31d4d6a6861eac3ca2298b93cd62a51310ed
tree8fdd91b6762ff012d259bea3b3b3d9813f8767a6
parent15969297af0371fec1523f7a4182dae87e19c782
BUILD/MINOR: build without openssl still broken

As mentionned in commit cf4e496c9 ("BUG/MEDIUM: build without openssl broken"),
commit 872f9c213 ("MEDIUM: ssl: add basic support for OpenSSL crypto engine")
broke the build without openssl support. But the former did only fix it when
openssl is not enabled, but not when it's not installed on the system :

In file included from src/haproxy.c:112:
include/proto/ssl_sock.h:24:25: openssl/ssl.h: No such file or directory
In file included from src/haproxy.c:112:
include/proto/ssl_sock.h:45: error: syntax error before "SSL_CTX"
include/proto/ssl_sock.h:75: error: syntax error before '*' token
include/proto/ssl_sock.h:75: warning: type defaults to `int' in declaration of `ssl_sock_create_cert'
include/proto/ssl_sock.h:75: warning: data definition has no type or storage class
include/proto/ssl_sock.h:76: error: syntax error before '*' token
include/proto/ssl_sock.h:76: warning: type defaults to `int' in declaration of `ssl_sock_get_generated_cert'
include/proto/ssl_sock.h:76: warning: data definition has no type or storage class
include/proto/ssl_sock.h:77: error: syntax error before '*' token

Now we also surround the include with #ifdef USE_OPENSSL to fix this. No
backport is needed since openssl async engines were not backported.
src/haproxy.c