Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A number of functions C-Kermit uses have been deprecated in OpenSSL 3.0 #216

Open
davidrg opened this issue Jun 30, 2023 · 0 comments
Open

Comments

@davidrg
Copy link
Owner

davidrg commented Jun 30, 2023

This problem affects C-Kermit on other platforms too so the issue may get fixed there - this issue is just to keep track of the issue as CKW will be switching to OpenSSL 3.x soon.

ck_ssl.c: In function ‘tmp_rsa_cb’:
ck_ssl.c:853:9: warning: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  853 |         rsa_tmp = RSA_new();
      |         ^~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:204:28: note: declared here
  204 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
ck_ssl.c:855:13: warning: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  855 |             int error = RSA_generate_key_ex(rsa_tmp, keylength, get_RSA_F4(),NULL);
      |             ^~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:263:27: note: declared here
  263 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
ck_ssl.c:859:17: warning: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  859 |                 RSA_free(rsa_tmp);
      |                 ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:296:28: note: declared here
  296 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
ck_ssl.c: In function ‘get_dh512’:
ck_ssl.c:976:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  976 |     if ((dh=DH_new()) == NULL)
      |     ^~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:199:27: note: declared here
  199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ck_ssl.c:984:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  984 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ck_ssl.c:987:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  987 |     DH_set0_pqg(dh, p, NULL, g);
      |     ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:255:27: note: declared here
  255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ck_ssl.c: In function ‘get_dh768’:
ck_ssl.c:1008:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1008 |     if ((dh=DH_new()) == NULL)
      |     ^~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:199:27: note: declared here
  199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ck_ssl.c:1016:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1016 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ck_ssl.c:1019:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1019 |     DH_set0_pqg(dh, p, NULL, g);
      |     ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:255:27: note: declared here
  255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ck_ssl.c: In function ‘get_dh1024’:
ck_ssl.c:1040:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1040 |     if ((dh=DH_new()) == NULL)
      |     ^~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:199:27: note: declared here
  199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ck_ssl.c:1048:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1048 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ck_ssl.c:1051:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1051 |     DH_set0_pqg(dh, p, NULL, g);
      |     ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:255:27: note: declared here
  255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ck_ssl.c: In function ‘get_dh1536’:
ck_ssl.c:1072:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1072 |     if ((dh=DH_new()) == NULL)
      |     ^~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:199:27: note: declared here
  199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ck_ssl.c:1080:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1080 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ck_ssl.c:1083:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1083 |     DH_set0_pqg(dh, p, NULL, g);
      |     ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:255:27: note: declared here
  255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ck_ssl.c: In function ‘get_dh2048’:
ck_ssl.c:1104:5: warning: ‘DH_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1104 |     if ((dh=DH_new()) == NULL)
      |     ^~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:199:27: note: declared here
  199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
      |                           ^~~~~~
ck_ssl.c:1112:9: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1112 |         DH_free(dh);
      |         ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:200:28: note: declared here
  200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
      |                            ^~~~~~~
ck_ssl.c:1115:5: warning: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1115 |     DH_set0_pqg(dh, p, NULL, g);
      |     ^~~~~~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
                 from /usr/include/openssl/x509.h:37,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/dh.h:255:27: note: declared here
  255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
      |                           ^~~~~~~~~~~
ck_ssl.c: In function ‘tmp_dh_cb’:
ck_ssl.c:1148:13: warning: ‘PEM_read_bio_DHparams’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1148 |             dh_tmp=PEM_read_bio_DHparams(bio,NULL,NULL,NULL);
      |             ^~~~~~
In file included from /usr/include/openssl/ssl.h:36,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/pem.h:469:1: note: declared here
  469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
      | ^~~~~~~~~~~~~~~~~~~
ck_ssl.c: In function ‘ssl_tn_init’:
ck_ssl.c:1981:13: warning: ‘SSL_CTX_set_tmp_dh_callback’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1981 |             SSL_CTX_set_tmp_dh_callback( ssl_ctx, tmp_dh_cb);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/ssl.h:2232:6: note: declared here
 2232 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ck_ssl.c:1983:13: warning: ‘SSL_CTX_set_tmp_dh_callback’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1983 |             SSL_CTX_set_tmp_dh_callback( tls_ctx, tmp_dh_cb);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/ssl.h:2232:6: note: declared here
 2232 | void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ck_ssl.c:2003:17: warning: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2003 |                 rsa = RSA_new();
      |                 ^~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:204:28: note: declared here
  204 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
ck_ssl.c:2005:21: warning: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2005 |                     int error = RSA_generate_key_ex(rsa,512,get_RSA_F4(),NULL);
      |                     ^~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:263:27: note: declared here
  263 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
ck_ssl.c:2007:25: warning: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2007 |                         RSA_free(rsa);
      |                         ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:296:28: note: declared here
  296 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
ck_ssl.c:2028:17: warning: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2028 |                 RSA_free(rsa);
      |                 ^~~~~~~~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/ssl.h:31,
                 from ck_ssl.h:78,
                 from ck_ssl.c:122:
/usr/include/openssl/rsa.h:296:28: note: declared here
  296 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
      |                            ^~~~~~~~
@davidrg davidrg added this to the Final Release milestone Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant