Victor Seva writes:
@juha-h can you please test
https://github.com/kamailio/kamailio/pull/3482?
At least the OPENSSL_fork_* warnings should be solved.
I gave the PR a try and now got the warnings below (no fork warnings
anymore).
-- Juha
--------------------------------
tls_mod.c: In function 'ksr_rand_engine_param':
tls_mod.c:520:17: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
520 | RAND_set_rand_method(RAND_ksr_krand_method());
| ^~~~~~~~~~~~~~~~~~~~
In file included from tls_rand.h:26,
from tls_mod.c:54:
/usr/include/openssl/rand.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
| ^~~~~~~~~~~~~~~~~~~~
tls_mod.c:523:17: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
523 | RAND_set_rand_method(RAND_ksr_fastrand_method());
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rand.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
| ^~~~~~~~~~~~~~~~~~~~
tls_mod.c:526:17: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
526 | RAND_set_rand_method(RAND_ksr_cryptorand_method());
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rand.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
| ^~~~~~~~~~~~~~~~~~~~
tls_mod.c:529:17: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
529 | RAND_set_rand_method(RAND_ksr_kxlibssl_method());
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rand.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
| ^~~~~~~~~~~~~~~~~~~~
tls_mod.c: In function 'mod_register':
tls_mod.c:680:9: warning: 'RAND_set_rand_method' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
680 | RAND_set_rand_method(RAND_ksr_cryptorand_method());
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rand.h:49:27: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
| ^~~~~~~~~~~~~~~~~~~~
tls_mod.c: In function 'tls_engine_init':
tls_mod.c:715:9: warning: 'ENGINE_by_id' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
715 | e = ENGINE_by_id("dynamic");
| ^
In file included from tls_mod.c:154:
/usr/include/openssl/engine.h:336:31: note: declared here
336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
| ^~~~~~~~~~~~
tls_mod.c:734:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
734 | if(!ENGINE_ctrl_cmd_string(e, "SO_PATH",
| ^~
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
tls_mod.c:739:9: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
739 | if(!ENGINE_ctrl_cmd_string(e, "ID", engine_id, 0)) {
| ^~
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
tls_mod.c:743:9: warning: 'ENGINE_ctrl_cmd' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
743 | if(!ENGINE_ctrl_cmd(e, "LOAD", 1, NULL, NULL, 0)) {
| ^~
/usr/include/openssl/engine.h:450:27: note: declared here
450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
| ^~~~~~~~~~~~~~~
tls_mod.c:752:17: warning: 'ENGINE_ctrl_cmd_string' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
752 | if(!ENGINE_ctrl_cmd_string(e, confval->name, confval->value,
0)) {
| ^~
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
tls_mod.c:758:9: warning: 'ENGINE_init' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
758 | if(!ENGINE_init(e)) {
| ^~
/usr/include/openssl/engine.h:620:27: note: declared here
620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
| ^~~~~~~~~~~
tls_mod.c:763:17: warning: 'ENGINE_set_default_string' is deprecated: Since
OpenSSL 3.0 [-Wdeprecated-declarations]
763 | rc = ENGINE_set_default_string(
| ^~
/usr/include/openssl/engine.h:685:27: note: declared here
685 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_default_string(ENGINE *e,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
tls_mod.c:770:9: warning: 'ENGINE_free' is deprecated: Since OpenSSL 3.0
[-Wdeprecated-declarations]
770 | ENGINE_free(e);
| ^~~~~~~~~~~
/usr/include/openssl/engine.h:493:27: note: declared here
493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
| ^~~~~~~~~~~
tls_mod.c: In function 'tls_engine_private_key':
tls_mod.c:780:9: warning: 'ENGINE_load_private_key' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
780 | return ENGINE_load_private_key(ksr_tls_engine, key_id, NULL, NULL);
| ^~~~~~
/usr/include/openssl/engine.h:638:11: note: declared here
638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
| ^~~~~~~~~~~~~~~~~~~~~~~
CC (gcc) [M tls.so] tls_rand.o
tls_rand.c: In function 'ksr_kxlibssl_init':
tls_rand.c:179:17: warning: 'RAND_get_rand_method' is deprecated: Since OpenSSL
3.0 [-Wdeprecated-declarations]
179 | _ksr_kxlibssl_local_method = RAND_get_rand_method();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from tls_rand.h:26,
from tls_rand.c:30:
/usr/include/openssl/rand.h:50:42: note: declared here
50 | OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void);
| ^~~~~~~~~~~~~~~~~~~~