1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

Fix: Corrected const for SSL_METHOD*.

I did this for OpenSSL 1.0.1t (0x1000114fL) as I don't
know which was the first affected version.
This commit is contained in:
Philipp Schafft 2018-06-16 18:40:04 +00:00
parent 9ae7af51b6
commit 6136810f27

View File

@ -61,7 +61,11 @@ void tls_shutdown(void)
tls_ctx_t *tls_ctx_new(const char *cert_file, const char *key_file, const char *cipher_list)
{
tls_ctx_t *ctx;
#if OPENSSL_VERSION_NUMBER < 0x1000114fL
SSL_METHOD *method;
#else
const SSL_METHOD *method;
#endif
long ssl_opts;
if (!cert_file || !key_file || !cipher_list)