]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/MINOR: ssl: de-constify "ciphers" to avoid a warning on openssl-0.9.8
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Oct 2014 05:49:19 +0000 (06:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Oct 2014 05:52:13 +0000 (06:52 +0100)
commita616ba6f5fbee93134f121ac1da47397b071f365
treed284e2c0c0ab8c199464a79ec6b4a0112e41361d
parent317e1c4f1e00ff1de2451c3a14b8082b1a7198f9
BUILD/MINOR: ssl: de-constify "ciphers" to avoid a warning on openssl-0.9.8

When building on openssl-0.9.8, since commit 23d5d37 ("MINOR: ssl: use
SSL_get_ciphers() instead of directly accessing the cipher list.") we get
the following warning :

src/ssl_sock.c: In function 'ssl_sock_prepare_ctx':
src/ssl_sock.c:1592: warning: passing argument 1 of 'SSL_CIPHER_description' discards qualifiers from pointer target type

This is because the openssl API has changed between 0.9.8 and 1.0.1 :

0.9.8: char *SSL_CIPHER_description(SSL_CIPHER *,char *buf,int size);
1.0.1: char *SSL_CIPHER_description(const SSL_CIPHER *,char *buf,int size);

So let's remove the "const" type qualifier to satisfy both versions.
Note that the fix above was backported to 1.5, so this one should as well.
src/ssl_sock.c