The warnings were reported before:
-
https://lists.kamailio.org/pipermail/sr-dev/2017-April/040137.html
Meanwhile (recently) I fixed them in master branch (see git log for
src/modules/tls/) and I am fine to backport provided that someone does
some proper testing on Stretch -- I have a devel VM for it, but no
serious testing done so far with this OS.
Note that an issue reported on github might have some relation to the
new libssl/libcrypto from openssl 1.1.0+:
-
https://github.com/kamailio/kamailio/issues/1172
Being a reason I suggested to do some good testing before production.
Cheers,
Daniel
On 03.07.17 16:33, Juha Heinanen wrote:
I got these TLS related warnings when compiling K 5.0
on Debian Stretch.
-- Juha
CC (gcc) [M tls.so] tls_init.o
tls_init.c: In function 'init_ssl_methods':
tls_init.c:377:2: warning: 'TLSv1_client_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_cli - 1] = TLSv1_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1614:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
^
tls_init.c:378:2: warning: 'TLSv1_server_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_srv - 1] = TLSv1_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1613:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
^
tls_init.c:379:2: warning: 'TLSv1_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1 - 1] = TLSv1_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1612:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
^
tls_init.c:382:2: warning: 'TLSv1_1_client_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1_cli - 1] = TLSv1_1_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1620:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */
^
tls_init.c:383:2: warning: 'TLSv1_1_server_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1_srv - 1] = TLSv1_1_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1619:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */
^
tls_init.c:384:2: warning: 'TLSv1_1_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_1 - 1] = TLSv1_1_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1618:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
^
tls_init.c:388:2: warning: 'TLSv1_2_client_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2_cli - 1] = TLSv1_2_client_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1626:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
^
tls_init.c:389:2: warning: 'TLSv1_2_server_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2_srv - 1] = TLSv1_2_server_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1625:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */
^
tls_init.c:390:2: warning: 'TLSv1_2_method' is deprecated
[-Wdeprecated-declarations]
ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
^~~~~~~~~~~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from tls_init.c:45:
/usr/include/openssl/ssl.h:1624:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
^
CC (gcc) [M tls.so] tls_bio.o
CC (gcc) [M tls.so] tls_locking.o
tls_locking.c:98:13: warning: 'locking_f' defined but not used
[-Wunused-function]
static void locking_f(int mode, int n, const char* file, int line)
^~~~~~~~~
tls_locking.c:83:13: warning: 'dyn_destroy_f' defined but not used
[-Wunused-function]
static void dyn_destroy_f(struct CRYPTO_dynlock_value *l,
^~~~~~~~~~~~~
tls_locking.c:65:13: warning: 'dyn_lock_f' defined but not used
[-Wunused-function]
static void dyn_lock_f(int mode, struct CRYPTO_dynlock_value* l,
^~~~~~~~~~
tls_locking.c:42:37: warning: 'dyn_create_f' defined but not used
[-Wunused-function]
static struct CRYPTO_dynlock_value* dyn_create_f(const char* file, int line)
^~~~~~~~~~~~
_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training -
www.asipto.com
Kamailio World Conference -
www.kamailioworld.com