[asterisk-bugs] [JIRA] (ASTERISK-30056) res_crypto.c build warnings

Mark Murawski (JIRA) noreply at issues.asterisk.org
Wed May 11 04:45:40 CDT 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Murawski updated ASTERISK-30056:
-------------------------------------

    Environment: 
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy


  was:
{noformat}
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy
{noformat}


> res_crypto.c build warnings
> ---------------------------
>
>                 Key: ASTERISK-30056
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30056
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_crypto
>    Affects Versions: 19.3.3
>         Environment: Description:    Ubuntu 22.04 LTS
> Release:        22.04
> Codename:       jammy
>            Reporter: Mark Murawski
>              Labels: fax
>
> {noformat}
>    [CC] res_fax.c -> res_fax.o
> res_crypto.c: In function ‘try_load_key’:
> res_crypto.c:255:17: warning: ‘PEM_read_RSA_PUBKEY’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   255 |                 key->rsa = PEM_read_RSA_PUBKEY(f, NULL, pw_cb, key);
>       |                 ^~~
> In file included from /usr/include/openssl/ssl.h:36,
>                  from res_crypto.c:40:
> /usr/include/openssl/pem.h:449:1: note: declared here
>   449 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA)
>       | ^~~~~~~~~~~~~~~~~~~
> res_crypto.c:257:17: warning: ‘PEM_read_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   257 |                 key->rsa = PEM_read_RSAPrivateKey(f, NULL, pw_cb, key);
>       |                 ^~~
> In file included from /usr/include/openssl/ssl.h:36,
>                  from res_crypto.c:40:
> /usr/include/openssl/pem.h:447:1: note: declared here
>   447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
>       | ^~~~~~~~~~~~~~~~~~~~~~
> res_crypto.c:261:17: warning: ‘RSA_size’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   261 |                 if (RSA_size(key->rsa) == 128) {
>       |                 ^~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:204:27: note: declared here
>   204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
>       |                           ^~~~~~~~
> res_crypto.c: In function ‘__ast_sign_bin’:
> res_crypto.c:319:9: warning: ‘RSA_sign’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   319 |         if (!(res = RSA_sign(NID_sha1, digest, sizeof(digest), dsig, &siglen, key->rsa))) {
>       |         ^~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:348:27: note: declared here
>   348 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m,
>       |                           ^~~~~~~~
> res_crypto.c: In function ‘__ast_decrypt_bin’:
> res_crypto.c:352:17: warning: ‘RSA_private_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   352 |                 if ((res = RSA_private_decrypt(128, src, dst, key->rsa, RSA_PKCS1_OAEP_PADDING)) < 0) {
>       |                 ^~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:291:5: note: declared here
>   291 | int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
>       |     ^~~~~~~~~~~~~~~~~~~
> res_crypto.c: In function ‘__ast_encrypt_bin’:
> res_crypto.c:383:17: warning: ‘RSA_public_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   383 |                 if ((res = RSA_public_encrypt(bytes, src, dst, key->rsa, RSA_PKCS1_OAEP_PADDING)) != 128) {
>       |                 ^~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:282:5: note: declared here
>   282 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
>       |     ^~~~~~~~~~~~~~~~~~
> res_crypto.c: In function ‘__ast_check_signature_bin’:
> res_crypto.c:432:9: warning: ‘RSA_verify’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   432 |         if (!(res = RSA_verify(NID_sha1, digest, sizeof(digest), (unsigned char *)dsig, 128, key->rsa))) {
>       |         ^~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:351:27: note: declared here
>   351 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m,
>       |                           ^~~~~~~~~~
> res_crypto.c: In function ‘__ast_aes_set_encrypt_key’:
> res_crypto.c:468:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   468 |         return AES_set_encrypt_key(key, 128, ctx);
>       |         ^~~~~~
> In file included from res_crypto.c:38:
> /usr/include/openssl/aes.h:51:5: note: declared here
>    51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> res_crypto.c: In function ‘__ast_aes_set_decrypt_key’:
> res_crypto.c:473:9: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   473 |         return AES_set_decrypt_key(key, 128, ctx);
>       |         ^~~~~~
> In file included from res_crypto.c:38:
> /usr/include/openssl/aes.h:54:5: note: declared here
>    54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
>       |     ^~~~~~~~~~~~~~~~~~~
> res_crypto.c: In function ‘__ast_aes_encrypt’:
> res_crypto.c:478:9: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   478 |         return AES_encrypt(in, out, ctx);
>       |         ^~~~~~
> In file included from res_crypto.c:38:
> /usr/include/openssl/aes.h:57:6: note: declared here
>    57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~
> res_crypto.c: In function ‘__ast_aes_decrypt’:
> res_crypto.c:483:9: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   483 |         return AES_decrypt(in, out, ctx);
>       |         ^~~~~~
> In file included from res_crypto.c:38:
> /usr/include/openssl/aes.h:60:6: note: declared here
>    60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
>       |      ^~~~~~~~~~~
> res_crypto.c: In function ‘crypto_load’:
> res_crypto.c:525:33: warning: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>   525 |                                 RSA_free(key->rsa);
>       |                                 ^~~~~~~~
> In file included from /usr/include/openssl/x509.h:36,
>                  from /usr/include/openssl/ssl.h:31,
>                  from res_crypto.c:40:
> /usr/include/openssl/rsa.h:293:28: note: declared here
>   293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
>       |                            ^~~~~~~~
>    [CC] res_fax_spandsp.c -> res_fax_spandsp.o
>    [CC] res_format_attr_celt.c -> res_format_attr_celt.o
>    [CC] res_format_attr_g729.c -> res_format_attr_g729.o
>    [CC] res_format_attr_h263.c -> res_format_attr_h263.o
>    [CC] res_format_attr_h264.c -> res_format_attr_h264.o
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list