Azure/azure-c-shared-utility

OpenSSL3 compatibility

jiapei-nexera opened this issue · 1 comments

[ 92%] Building C object CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o
/usr/bin/cc -DARCHITECTURE_x86_64=1 -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -D_POSIX_C_SOURCE=200112L  -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o -MF CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o.d -o CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o -c ....../azure-c-shared-utility/src/utf8_checker.c
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘engine_destroy’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:762:9: error: ‘ENGINE_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  762 |         ENGINE_free(tls->engine); // Release structural reference.
      |         ^~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:493:27: note: declared here
  493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
      |                           ^~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘engine_load’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:772:5: error: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  772 |     tls->engine = ENGINE_by_id(tls->engine_id);
      |     ^~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:336:31: note: declared here
  336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
      |                               ^~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘add_certificate_to_store’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:961:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  961 |             bio_method = BIO_s_mem();
      |                        ^
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘create_openssl_instance’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1058:9: error: ‘TLSv1_2_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1058 |         method = TLSv1_2_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2020:50: note: declared here
 2020 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_2_method(void); /* TLSv1.2 */
      |                                                  ^~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1062:9: error: ‘TLSv1_1_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1062 |         method = TLSv1_1_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2012:50: note: declared here
 2012 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_1_method(void); /* TLSv1.1 */
      |                                                  ^~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1066:9: error: ‘TLSv1_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1066 |         method = TLSv1_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2004:50: note: declared here
 2004 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
      |                                                  ^~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_init’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1224:5: error: ‘ERR_load_BIO_strings’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1224 |     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 ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
   31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_deinit’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1252:5: error: ‘ERR_remove_thread_state’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1252 |     ERR_remove_thread_state(NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:6:
/usr/include/openssl/err.h:473:30: note: declared here
  473 | OSSL_DEPRECATEDIN_1_1_0 void ERR_remove_thread_state(void *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_setoption’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1724:13: error: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1724 |             ENGINE_load_builtin_engines();
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:358:28: note: declared here
  358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘engine_destroy’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:762:9: error: ‘ENGINE_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  762 |         ENGINE_free(tls->engine); // Release structural reference.
      |         ^~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:493:27: note: declared here
  493 | OSSL_DEPRECATEDIN_3_0 int ENGINE_free(ENGINE *e);
      |                           ^~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘engine_load’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:772:5: error: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  772 |     tls->engine = ENGINE_by_id(tls->engine_id);
      |     ^~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:336:31: note: declared here
  336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
      |                               ^~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘add_certificate_to_store’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:961:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  961 |             bio_method = BIO_s_mem();
      |                        ^
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘create_openssl_instance’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1058:9: error: ‘TLSv1_2_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1058 |         method = TLSv1_2_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2020:50: note: declared here
 2020 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_2_method(void); /* TLSv1.2 */
      |                                                  ^~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1062:9: error: ‘TLSv1_1_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1062 |         method = TLSv1_1_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2012:50: note: declared here
 2012 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_1_method(void); /* TLSv1.1 */
      |                                                  ^~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1066:9: error: ‘TLSv1_method’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1066 |         method = TLSv1_method();
      |         ^~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/ssl.h:2004:50: note: declared here
 2004 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_method(void); /* TLSv1.0 */
      |                                                  ^~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_init’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1224:5: error: ‘ERR_load_BIO_strings’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1224 |     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 ....../azure-c-shared-utility/adapters/tlsio_openssl.c:5:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
   31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_deinit’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1252:5: error: ‘ERR_remove_thread_state’ is deprecated: Since OpenSSL 1.1.0 [-Werror=deprecated-declarations]
 1252 |     ERR_remove_thread_state(NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:6:
/usr/include/openssl/err.h:473:30: note: declared here
  473 | OSSL_DEPRECATEDIN_1_1_0 void ERR_remove_thread_state(void *);
      |                              ^~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/tlsio_openssl.c: In function ‘tlsio_openssl_setoption’:
....../azure-c-shared-utility/adapters/tlsio_openssl.c:1724:13: error: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
 1724 |             ENGINE_load_builtin_engines();
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/tlsio_openssl.c:9:
/usr/include/openssl/engine.h:358:28: note: declared here
  358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 93%] Building C object CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o
/usr/bin/cc -DARCHITECTURE_x86_64=1 -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -D_POSIX_C_SOURCE=200112L  -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -fPIC -std=gnu99 -MD -MT CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o -MF CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o.d -o CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o -c ....../azure-c-shared-utility/src/ws_url.c
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘load_certificate_chain’:
....../azure-c-shared-utility/adapters/x509_openssl.c:81:28: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   81 |                 if (ssl_ctx->extra_certs != NULL)
      |                            ^~
In file included from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
....../azure-c-shared-utility/adapters/x509_openssl.c:83:45: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   83 |                     sk_X509_pop_free(ssl_ctx->extra_certs, X509_free);
      |                                             ^~
....../azure-c-shared-utility/adapters/x509_openssl.c:84:28: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   84 |                     ssl_ctx->extra_certs = NULL;
      |                            ^~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘load_key_RSA’:
....../azure-c-shared-utility/adapters/x509_openssl.c:140:5: error: ‘EVP_PKEY_get1_RSA’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  140 |     RSA* privatekey = EVP_PKEY_get1_RSA(evp_key);
      |     ^~~
In file included from /usr/include/openssl/x509.h:29,
                 from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/evp.h:1348:16: note: declared here
 1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
      |                ^~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:150:9: error: ‘SSL_CTX_use_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  150 |         if (SSL_CTX_use_RSAPrivateKey(ssl_ctx, privatekey) != 1)
      |         ^~
In file included from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/ssl.h:1799:12: note: declared here
 1799 | __owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:162:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  162 |         RSA_free(privatekey);
      |         ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/rsa.h:293:28: note: declared here
  293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘x509_openssl_add_engine_key’:
....../azure-c-shared-utility/adapters/x509_openssl.c:227:5: error: ‘ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  227 |     if (!ENGINE_init(engine))
      |     ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:620:27: note: declared here
  620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
      |                           ^~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:234:9: error: ‘ENGINE_set_default’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  234 |         if (!ENGINE_set_default(engine, ENGINE_METHOD_ALL))
      |         ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:708:27: note: declared here
  708 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_default(ENGINE *e, unsigned int flags);
      |                           ^~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:241:13: error: ‘ENGINE_load_private_key’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  241 |             EVP_PKEY* evp_key = ENGINE_load_private_key(engine, x509privatekey_id, NULL, NULL);
      |             ^~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:638:11: note: declared here
  638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
      |           ^~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:264:9: error: ‘ENGINE_finish’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  264 |         if (!ENGINE_finish(engine))  // Release functional reference.
      |         ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:628:27: note: declared here
  628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e);
      |                           ^~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘x509_openssl_add_certificates’:
....../azure-c-shared-utility/adapters/x509_openssl.c:353:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  353 |             bio_method = BIO_s_mem();
      |                        ^
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘load_certificate_chain’:
....../azure-c-shared-utility/adapters/x509_openssl.c:81:28: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   81 |                 if (ssl_ctx->extra_certs != NULL)
      |                            ^~
In file included from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
....../azure-c-shared-utility/adapters/x509_openssl.c:83:45: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   83 |                     sk_X509_pop_free(ssl_ctx->extra_certs, X509_free);
      |                                             ^~
....../azure-c-shared-utility/adapters/x509_openssl.c:84:28: error: invalid use of incomplete typedef ‘SSL_CTX’ {aka ‘struct ssl_ctx_st’}
   84 |                     ssl_ctx->extra_certs = NULL;
      |                            ^~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘load_key_RSA’:
....../azure-c-shared-utility/adapters/x509_openssl.c:140:5: error: ‘EVP_PKEY_get1_RSA’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  140 |     RSA* privatekey = EVP_PKEY_get1_RSA(evp_key);
      |     ^~~
In file included from /usr/include/openssl/x509.h:29,
                 from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/evp.h:1348:16: note: declared here
 1348 | struct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);
      |                ^~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:150:9: error: ‘SSL_CTX_use_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  150 |         if (SSL_CTX_use_RSAPrivateKey(ssl_ctx, privatekey) != 1)
      |         ^~
cc1: all warnings being treated as errors
In file included from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/ssl.h:1799:12: note: declared here
 1799 | __owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:162:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  162 |         RSA_free(privatekey);
      |         ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ....../azure-c-shared-utility/inc/azure_c_shared_utility/x509_openssl.h:7,
                 from ....../azure-c-shared-utility/adapters/x509_openssl.c:4:
/usr/include/openssl/rsa.h:293:28: note: declared here
  293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘x509_openssl_add_engine_key’:
....../azure-c-shared-utility/adapters/x509_openssl.c:227:5: error: ‘ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  227 |     if (!ENGINE_init(engine))
      |     ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:620:27: note: declared here
  620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
      |                           ^~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:234:9: error: ‘ENGINE_set_default’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  234 |         if (!ENGINE_set_default(engine, ENGINE_METHOD_ALL))
      |         ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:708:27: note: declared here
  708 | OSSL_DEPRECATEDIN_3_0 int ENGINE_set_default(ENGINE *e, unsigned int flags);
      |                           ^~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:241:13: error: ‘ENGINE_load_private_key’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  241 |             EVP_PKEY* evp_key = ENGINE_load_private_key(engine, x509privatekey_id, NULL, NULL);
      |             ^~~~~~~~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:638:11: note: declared here
  638 | EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,
      |           ^~~~~~~~~~~~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c:264:9: error: ‘ENGINE_finish’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
  264 |         if (!ENGINE_finish(engine))  // Release functional reference.
      |         ^~
In file included from ....../azure-c-shared-utility/adapters/x509_openssl.c:14:
/usr/include/openssl/engine.h:628:27: note: declared here
  628 | OSSL_DEPRECATEDIN_3_0 int ENGINE_finish(ENGINE *e);
      |                           ^~~~~~~~~~~~~
....../azure-c-shared-utility/adapters/x509_openssl.c: In function ‘x509_openssl_add_certificates’:
....../azure-c-shared-utility/adapters/x509_openssl.c:353:24: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  353 |             bio_method = BIO_s_mem();
      |                        ^
make[2]: *** [CMakeFiles/aziotsharedutil.dir/build.make:807: CMakeFiles/aziotsharedutil.dir/adapters/x509_openssl.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/aziotsharedutil_dll.dir/build.make:807: CMakeFiles/aziotsharedutil_dll.dir/adapters/x509_openssl.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 94%] Building C object CMakeFiles/aziotsharedutil_dll.dir/src/uws_frame_encoder.c.o
/usr/bin/cc -DARCHITECTURE_x86_64=1 -Daziotsharedutil_dll_EXPORTS -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -D_POSIX_C_SOURCE=200112L  -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/aziotsharedutil_dll.dir/src/uws_frame_encoder.c.o -MF CMakeFiles/aziotsharedutil_dll.dir/src/uws_frame_encoder.c.o.d -o CMakeFiles/aziotsharedutil_dll.dir/src/uws_frame_encoder.c.o -c ....../azure-c-shared-utility/src/uws_frame_encoder.c
[ 95%] Building C object CMakeFiles/aziotsharedutil_dll.dir/src/utf8_checker.c.o
/usr/bin/cc -DARCHITECTURE_x86_64=1 -Daziotsharedutil_dll_EXPORTS -I....../azure-c-shared-utility/inc -I....../azure-c-shared-utility/pal/linux -I....../azure-c-shared-utility/deps/umock-c/inc -I....../azure-c-shared-utility/deps/azure-macro-utils-c/inc -D_POSIX_C_SOURCE=200112L  -Werror -Werror -Wall -Wextra -Wformat=2 -Wformat-security -DUSE_OPENSSL -Wno-unused-variable -Wno-missing-braces -Wno-missing-field-initializers -Wno-format-nonliteral -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/aziotsharedutil_dll.dir/src/utf8_checker.c.o -MF CMakeFiles/aziotsharedutil_dll.dir/src/utf8_checker.c.o.d -o CMakeFiles/aziotsharedutil_dll.dir/src/utf8_checker.c.o -c ....../azure-c-shared-utility/src/utf8_checker.c
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/aziotsharedutil_dll.dir/build.make:793: CMakeFiles/aziotsharedutil_dll.dir/adapters/tlsio_openssl.c.o] Error 1
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/aziotsharedutil.dir/build.make:793: CMakeFiles/aziotsharedutil.dir/adapters/tlsio_openssl.c.o] Error 1
make[2]: Leaving directory '....../azure-c-shared-utility/build_22.04'
make[1]: *** [CMakeFiles/Makefile2:948: CMakeFiles/aziotsharedutil.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '....../azure-c-shared-utility/build_22.04'
make[1]: *** [CMakeFiles/Makefile2:974: CMakeFiles/aziotsharedutil_dll.dir/all] Error 2
make[1]: Leaving directory '....../azure-c-shared-utility/build_22.04'
make: *** [Makefile:149: all] Error 2

Hi @jiapei-nexera
Currently we do not support OpenSSL 3 but we have it in our backlog to bring it to this repository.
Thanks