Deprecation warnings when compiling against OpenSSL 3.0
When trying to compile CycloneDDS against OpenSSL 3.0 (which is going to be in Ubuntu 22.04), we see the following warnings (edited for brevity):
[ 19%] Building C object src/core/CMakeFiles/ddsc.dir/ddsi/src/ddsi_ssl.c.o
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/core/ddsi/src/ddsi_ssl.c: In function ‘ddsi_ssl_init’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/core/ddsi/src/ddsi_ssl.c:360:3: warning: ‘ERR_load_BIO_strings’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
360 | ERR_load_BIO_strings ();
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/cryptoerr.h:17,
from /usr/include/openssl/crypto.h:38,
from /usr/include/openssl/comp.h:22,
from /usr/include/openssl/ssl.h:28,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/api/../../core/ddsi/include/dds/ddsi/ddsi_ssl.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/core/ddsi/src/ddsi_ssl.c:13:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
| ^~~~~~~~~~~~~~~~~~~~
...
[ 95%] Building C object src/security/builtin_plugins/authentication/CMakeFiles/dds_security_auth.dir/src/auth_utils.c.o
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘check_key_type_and_size’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:142:7: warning: ‘EVP_PKEY_get1_RSA’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
142 | RSA *rsaKey = EVP_PKEY_get1_RSA(key);
| ^~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1348:16: note: declared here
1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:143:7: warning: ‘RSA_check_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
143 | const bool fail = (rsaKey && RSA_check_key(rsaKey) != 1);
| ^~~~~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/rsa.h:278:27: note: declared here
278 | OSSL_DEPRECATEDIN_3_0 int RSA_check_key(const RSA *);
| ^~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:144:7: warning: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
144 | RSA_free(rsaKey);
| ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/rsa.h:293:28: note: declared here
293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:159:5: warning: ‘EVP_PKEY_get1_EC_KEY’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
159 | EC_KEY *ecKey = EVP_PKEY_get1_EC_KEY(key);
| ^~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1374:19: note: declared here
1374 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:160:5: warning: ‘EC_KEY_check_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
160 | const bool fail = (ecKey && EC_KEY_check_key(ecKey) != 1);
| ^~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1105:27: note: declared here
1105 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_check_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:161:5: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
161 | EC_KEY_free(ecKey);
| ^~~~~~~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1001:28: note: declared here
1001 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘get_rsa_dh_parameters’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:692:3: warning: ‘DH_get_2048_256’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
692 | if ((dh = DH_get_2048_256()) == NULL)
| ^~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:240:27: note: declared here
240 | OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_256(void);
| ^~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:698:3: warning: ‘EVP_PKEY_set1_DH’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
698 | if (EVP_PKEY_set1_DH(*params, dh) <= 0)
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1362:27: note: declared here
1362 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);
| ^~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:702:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
702 | DH_free(dh);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:706:3: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
706 | DH_free(dh);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_get_public_key’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:794:3: warning: ‘DH_get0_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
794 | DH_get0_key(dhkey, &pubkey, &privkey);
| ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:256:28: note: declared here
256 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key,
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_set_public_key’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:804:3: warning: ‘DH_set0_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
804 | return DH_set0_key(dhkey, pubkey, NULL);
| ^~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:258:27: note: declared here
258 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_public_key_to_oct_modp’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:816:3: warning: ‘EVP_PKEY_get1_DH’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
816 | if (!(dhkey = EVP_PKEY_get1_DH(pkey)))
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1364:37: note: declared here
1364 | OSSL_DEPRECATEDIN_3_0 struct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:824:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
824 | DH_free(dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:832:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
832 | DH_free(dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:840:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
840 | DH_free(dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:847:3: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
847 | DH_free (dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_public_key_to_oct_ecdh’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:858:3: warning: ‘EVP_PKEY_get1_EC_KEY’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
858 | if (!(eckey = EVP_PKEY_get1_EC_KEY(pkey)))
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1374:19: note: declared here
1374 | struct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);
| ^~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:863:3: warning: ‘EC_KEY_get0_public_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
863 | if (!(point = EC_KEY_get0_public_key(eckey)))
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1060:39: note: declared here
1060 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:868:3: warning: ‘EC_KEY_get0_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
868 | if (!(group = EC_KEY_get0_group(eckey)))
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1032:39: note: declared here
1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:885:3: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
885 | EC_KEY_free(eckey);
| ^~~~~~~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1001:28: note: declared here
1001 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:889:3: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
889 | EC_KEY_free(eckey);
| ^~~~~~~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1001:28: note: declared here
1001 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_oct_to_public_key_modp’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:934:3: warning: ‘DH_get_2048_256’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
934 | dhkey = DH_get_2048_256();
| ^~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:240:27: note: declared here
240 | OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_256(void);
| ^~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:940:3: warning: ‘EVP_PKEY_set1_DH’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
940 | if (EVP_PKEY_set1_DH(*pkey, dhkey) == 0)
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1362:27: note: declared here
1362 | OSSL_DEPRECATEDIN_3_0 int EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);
| ^~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:943:5: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
943 | DH_free(dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:947:3: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
947 | DH_free(dhkey);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/pem.h:23,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:64,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c: In function ‘dh_oct_to_public_key_ecdh’:
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:978:3: warning: ‘EC_KEY_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
978 | if (!(eckey = EC_KEY_new()))
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:966:31: note: declared here
966 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void);
| ^~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:983:3: warning: ‘EC_KEY_set_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
983 | if (EC_KEY_set_group(eckey, group) != 1)
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1040:27: note: declared here
1040 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);
| ^~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:988:3: warning: ‘EC_KEY_set_public_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
988 | if (EC_KEY_set_public_key(eckey, point) != 1)
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1068:27: note: declared here
1068 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
| ^~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:998:3: warning: ‘EVP_PKEY_set1_EC_KEY’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
998 | if (EVP_PKEY_set1_EC_KEY(*pkey, eckey) != 1)
| ^~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:60,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/evp.h:1370:5: note: declared here
1370 | int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);
| ^~~~~~~~~~~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:1003:3: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1003 | EC_KEY_free(eckey);
| ^~~~~~~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1001:28: note: declared here
1001 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
/home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:1012:3: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
1012 | EC_KEY_free(eckey);
| ^~~~~~~~~~~
In file included from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/openssl/include/dds/security/openssl_support.h:51,
from /home/ubuntu/ros2_ws/src/eclipse-cyclonedds/cyclonedds/src/security/builtin_plugins/authentication/src/auth_utils.c:27:
/usr/include/openssl/ec.h:1001:28: note: declared here
1001 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
(built with -j1 so we can see exactly which files the warnings come from)
These warnings happen on both the releases/0.8.x branch (which we use in ROS 2), and the master branch.
Hi @clalancette , thanks for reporting that ... We need to start using the new sanctioned functions. Fortunately we only use a few. I suppose this needs to be dealt with with some urgency?
(Backporting it to 0.8.x will be straightforward, by the way.)
Hi @clalancette , thanks for reporting that ... We need to start using the new sanctioned functions. Fortunately we only use a few. I suppose this needs to be dealt with with some urgency?
Earlier is always better; it will make our Jammy CI yellow until we fix it. The absolute last day that we can put these changes in is March 21. Thanks for taking a look!
The absolute last day that we can put these changes in is March 21
That should be manageable, and quite a bit earlier, too, I hope!
Since we have past March 21st 2022 without any new comments, I will close this with the assumption that it is complete. Please re-open if any further problems arise.