fairbird / NCam

NCam: Open Source
GNU General Public License v3.0
28 stars 16 forks source link

[Build Debian12] warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 #20

Closed MegaV0lt closed 1 year ago

MegaV0lt commented 1 year ago

Building in Debian 12 throws a lot of: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0

RM  build/x86_64-linux-gnu-ssl-libcurl
RM  tests.bin
RM  tests.bin.debug
+-------------------------------------------------------------------------------
| NCam ver: Unofficial rev: git308007c target: x86_64-linux-gnu-ssl-libcurl
| Tools:
|  CROSS    = 
|  CC       = gcc
| Settings:
|  CONF_DIR = /usr/local/etc
|  CC_OPTS  = -Os -ggdb -pipe -ffunction-sections -fdata-sections -funroll-loops -fomit-frame-pointer -fno-schedule-insns -fwrapv -fomit-frame-pointer -funroll-loops -fno-tree-vectorize
|  CC_WARN  = -W -Wall -Wshadow -Wno-shadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
|  CFLAGS   = -fexpensive-optimizations -mmmx -msse -msse2 -msse3 -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBCURL=1
|  LDFLAGS  = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBCURL=1
|  LIBS     = -lssl -lcrypto -lcurl -lm -lpthread -ldl -lrt
|  UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBCURL=1
| Config:
|  Addons   : WEBIF WEBIF_LIVELOG WEBIF_JQUERY WITH_SSL HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CW_CYCLE_CHECK LCDSUPPORT CLOCKFIX IPV6SUPPORT WITH_EMU
|  Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST CONSTCW
|  Readers  : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG STREAMGUARD JET BULCRYPT GRIFFIN DGCRYPT
|  CardRdrs : PHOENIX
|  Compiler : gcc (Debian 12.2.0-14) 12.2.0
|  Config   : build/x86_64-linux-gnu-ssl-libcurl/config.mak
|  Binary   : /usr/local/src/ncam.git/Distribution/ncam
+-------------------------------------------------------------------------------
CC  cscrypt/des.c
CC  cscrypt/jet_twofish.c
CC  cscrypt/jet_dh.c
CC  cscrypt/i_cbc.c
CC  cscrypt/i_ecb.c
CC  cscrypt/i_skey.c
CC  cscrypt/md5.c
cscrypt/md5.c: In function ‘__md5_crypt’:
cscrypt/md5.c:320:9: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  320 |         MD5_Init(&ctx);
      |         ^~~~~~~~
In file included from cscrypt/md5.h:5,
                 from cscrypt/md5.c:24:
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
cscrypt/md5.c:324:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  324 |         MD5_Update(&ctx, (const unsigned char *)pw, pw_len);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:327:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  327 |         MD5_Update(&ctx, (const unsigned char *)__md5__magic, __md5__magic_len);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:330:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  330 |         MD5_Update(&ctx, (const unsigned char *)sp, sl);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:333:9: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  333 |         MD5_Init(&ctx1);
      |         ^~~~~~~~
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
cscrypt/md5.c:334:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  334 |         MD5_Update(&ctx1, (const unsigned char *)pw, pw_len);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:335:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  335 |         MD5_Update(&ctx1, (const unsigned char *)sp, sl);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:336:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  336 |         MD5_Update(&ctx1, (const unsigned char *)pw, pw_len);
      |         ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:337:9: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  337 |         MD5_Final(final, &ctx1);
      |         ^~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~
cscrypt/md5.c:339:17: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  339 |                 { MD5_Update(&ctx, (const unsigned char *)final, pl > 16 ? 16 : pl); }
      |                 ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:347:17: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  347 |                 MD5_Update(&ctx, ((i & 1) ? final : (const unsigned char *) pw), 1);
      |                 ^~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:355:9: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  355 |         MD5_Final(final, &ctx);
      |         ^~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~
cscrypt/md5.c:364:17: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  364 |                 MD5_Init(&ctx1);
      |                 ^~~~~~~~
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
cscrypt/md5.c:366:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  366 |                         { MD5_Update(&ctx1, (const unsigned char *)pw, pw_len); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:368:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  368 |                         { MD5_Update(&ctx1, (const unsigned char *)final, 16); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:371:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  371 |                         { MD5_Update(&ctx1, (const unsigned char *)sp, sl); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:374:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  374 |                         { MD5_Update(&ctx1, (const unsigned char *)pw, pw_len); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:377:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  377 |                         { MD5_Update(&ctx1, (const unsigned char *)final, 16); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:379:25: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  379 |                         { MD5_Update(&ctx1, (const unsigned char *)pw, pw_len); }
      |                         ^
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
cscrypt/md5.c:380:17: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  380 |                 MD5_Final(final, &ctx1);
      |                 ^~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~
CC  cscrypt/rc6.c
CC  cscrypt/mdc2.c
cscrypt/mdc2.c: In function ‘mdc2_body’:
cscrypt/mdc2.c:634:17: warning: ‘DES_set_odd_parity’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  634 |                 DES_set_odd_parity(&c->h);
      |                 ^~~~~~~~~~~~~~~~~~
In file included from cscrypt/mdc2.h:63,
                 from cscrypt/mdc2.c:3:
/usr/include/openssl/des.h:176:28: note: declared here
  176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key);
      |                            ^~~~~~~~~~~~~~~~~~
cscrypt/mdc2.c:635:17: warning: ‘DES_set_key_unchecked’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  635 |                 DES_set_key_unchecked(&c->h, &k);
      |                 ^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/des.h:192:6: note: declared here
  192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
      |      ^~~~~~~~~~~~~~~~~~~~~
cscrypt/mdc2.c:636:17: warning: ‘DES_encrypt1’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  636 |                 DES_encrypt1(d, &k, 1);
      |                 ^~~~~~~~~~~~
/usr/include/openssl/des.h:121:6: note: declared here
  121 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);
      |      ^~~~~~~~~~~~
cscrypt/mdc2.c:638:17: warning: ‘DES_set_odd_parity’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  638 |                 DES_set_odd_parity(&c->hh);
      |                 ^~~~~~~~~~~~~~~~~~
/usr/include/openssl/des.h:176:28: note: declared here
  176 | OSSL_DEPRECATEDIN_3_0 void DES_set_odd_parity(DES_cblock *key);
      |                            ^~~~~~~~~~~~~~~~~~
cscrypt/mdc2.c:639:17: warning: ‘DES_set_key_unchecked’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  639 |                 DES_set_key_unchecked(&c->hh, &k);
      |                 ^~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/des.h:192:6: note: declared here
  192 | void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
      |      ^~~~~~~~~~~~~~~~~~~~~
cscrypt/mdc2.c:640:17: warning: ‘DES_encrypt1’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  640 |                 DES_encrypt1(dd, &k, 1);
      |                 ^~~~~~~~~~~~
/usr/include/openssl/des.h:121:6: note: declared here
  121 | void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);
      |      ^~~~~~~~~~~~
CC  cscrypt/fast_aes.c
CC  cscrypt/sha256.c
CC  csctapi/atr.c
CC  csctapi/icc_async.c
CC  csctapi/io_serial.c
CC  csctapi/protocol_t0.c
CC  csctapi/protocol_t1.c
CC  csctapi/ifd_phoenix.c
CC  minilzo/minilzo.c
CC  module-anticasc.c
CC  module-camd35.c
module-camd35.c: In function ‘camd35_auth_client’:
module-camd35.c:146:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  146 |                 if(crc == crc32(0L, MD5((uint8_t *)account->usr, cs_strlen(account->usr), md5tmp), MD5_DIGEST_LENGTH))
      |                 ^~
In file included from cscrypt/md5.h:5,
                 from module-camd35.c:6:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-camd35.c:153:33: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  153 |                                 if(!aes_set_key_alloc(&cl->aes_keys, (char *) MD5(cl->upwd, cs_strlen((char *)cl->upwd), md5tmp)))
      |                                 ^~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-camd35.c: In function ‘camd35_client_init’:
module-camd35.c:867:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  867 |         i2b_buf(4, crc32(0L, MD5((uint8_t *)cl->reader->r_usr, cs_strlen(cl->reader->r_usr), md5tmp), 16), cl->ucrc);
      |         ^~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-camd35.c:869:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  869 |         if(!aes_set_key_alloc(&cl->aes_keys, (char *)MD5(cl->upwd, cs_strlen((char *)cl->upwd), md5tmp)))
      |         ^~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  module-cccam.c
module-cccam.c: In function ‘cc_crypt_cmd0c’:
module-cccam.c:281:33: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  281 |                                 AES_decrypt((uint8_t *)buf + i * 16, (uint8_t *)out + i * 16, &cc->cmd0c_AES_key);
      |                                 ^~~~~~~~~~~
In file included from cscrypt/aes.h:2,
                 from globals.h:121,
                 from module-cccam.c:3:
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
module-cccam.c: In function ‘set_cmd0c_cryptkey’:
module-cccam.c:351:25: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  351 |                         AES_set_decrypt_key((uint8_t *)key_buf, 256, &cc->cmd0c_AES_key);
      |                         ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
module-cccam.c: In function ‘send_cmd05_answer’:
module-cccam.c:1229:41: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1229 |                                         AES_set_encrypt_key((uint8_t *) &aeskey, 128, &key);
      |                                         ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:51:5: note: declared here
   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
module-cccam.c:1234:49: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1234 |                                                 AES_encrypt((uint8_t *)data + i, (uint8_t *) &out + i, &key);
      |                                                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:57:6: note: declared here
   57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
module-cccam.c: In function ‘cc_parse_msg’:
module-cccam.c:3754:25: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3754 |                         AES_set_encrypt_key((uint8_t *)&aeskey, 128, &key);
      |                         ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:51:5: note: declared here
   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
module-cccam.c:3755:25: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3755 |                         AES_encrypt((uint8_t *)data, (uint8_t *)&out, &key);
      |                         ^~~~~~~~~~~
/usr/include/openssl/aes.h:57:6: note: declared here
   57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
module-cccam.c:3794:33: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3794 |                                 MD5(data, 0x20, md5hash);
      |                                 ^~~
In file included from cscrypt/md5.h:5,
                 from module-cccam.c:7:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-cccam.c: In function ‘cc_srv_connect’:
module-cccam.c:4318:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4318 |         SHA1_Init(&ctx);
      |         ^~~~~~~~~
In file included from cscrypt/sha1.h:2,
                 from module-cccam.c:8:
/usr/include/openssl/sha.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
      |                           ^~~~~~~~~
module-cccam.c:4319:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4319 |         SHA1_Update(&ctx, data, 16);
      |         ^~~~~~~~~~~
/usr/include/openssl/sha.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~~
module-cccam.c:4320:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4320 |         SHA1_Final(buf, &ctx);
      |         ^~~~~~~~~~
/usr/include/openssl/sha.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
      |                           ^~~~~~~~~~
module-cccam.c: In function ‘cc_cli_connect’:
module-cccam.c:4776:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4776 |         SHA1_Init(&ctx);
      |         ^~~~~~~~~
/usr/include/openssl/sha.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
      |                           ^~~~~~~~~
module-cccam.c:4777:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4777 |         SHA1_Update(&ctx, data, 16);
      |         ^~~~~~~~~~~
/usr/include/openssl/sha.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~~
module-cccam.c:4778:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4778 |         SHA1_Final(hash, &ctx);
      |         ^~~~~~~~~~
/usr/include/openssl/sha.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
      |                           ^~~~~~~~~~
CC  module-cccshare.c
CC  module-constcw.c
CC  module-emulator.c
CC  module-emulator-nemu.c
CC  module-emulator-streamserver.c
In function ‘connect_to_stream’,
    inlined from ‘stream_client_handler’ at module-emulator-streamserver.c:1518:14:
module-emulator-streamserver.c:1332:33: warning: array subscript ‘struct sockaddr_in6[0]’ is partly outside array bounds of ‘struct sockaddr_in[1]’ [-Warray-bounds]
 1332 |         SIN_GET_ADDR(cservaddr) = in_addr;
module-emulator-streamserver.c: In function ‘stream_client_handler’:
module-emulator-streamserver.c:1320:28: note: object ‘cservaddr’ of size 16
 1320 |         struct sockaddr_in cservaddr;
      |                            ^~~~~~~~~
CC  module-emulator-biss.c
module-emulator-biss.c: In function ‘parse_session_data’:
module-emulator-biss.c:669:9: warning: ‘RSA_private_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  669 |         if (RSA_private_decrypt(256, data, session_data, key, RSA_PKCS1_OAEP_PADDING) > 0)
      |         ^~
In file included from module-emulator-biss.h:7,
                 from module-emulator-biss.c:8:
/usr/include/openssl/rsa.h:291:5: note: declared here
  291 | int RSA_private_decrypt(int flen, const unsigned char *from, unsigned char *to,
      |     ^~~~~~~~~~~~~~~~~~~
module-emulator-biss.c: In function ‘biss_read_pem’:
module-emulator-biss.c:827:17: warning: ‘PEM_read_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  827 |                 if ((new_item->key = PEM_read_RSAPrivateKey(fp_pri, NULL, NULL, NULL)) == NULL)
      |                 ^~
In file included from module-emulator-biss.c:13:
/usr/include/openssl/pem.h:447:1: note: declared here
  447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
      | ^~~~~~~~~~~~~~~~~~~~~~
module-emulator-biss.c:852:17: warning: ‘i2d_RSA_PUBKEY’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  852 |                 if ((length = i2d_RSA_PUBKEY(new_item->key, &der)) <= 0)
      |                 ^~
In file included from /usr/include/openssl/rsa.h:21:
/usr/include/openssl/x509.h:710:1: note: declared here
  710 | DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0,RSA, RSA_PUBKEY)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC  module-emulator-cryptoworks.c
CC  module-emulator-director.c
module-emulator-director.c: In function ‘parse_emm_nano_tags’:
module-emulator-director.c:484:75: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘tagData + 16’ must not be NULL [-Waddress]
  484 |                                                 if ((tagData + 4 + 5 + 7) != 0x00) // check if key looks valid (last byte 0x00)
      |                                                                           ^~
CC  module-emulator-irdeto.c
CC  module-emulator-nagravision.c
CC  module-emulator-powervu.c
CC  module-emulator-icam.c
In file included from module-emulator-icam.c:4:
module-emulator-icam.c: In function ‘icam_connect_to_radegast’:
ncam-net.h:9:52: warning: array subscript ‘struct sockaddr_in6[0]’ is partly outside array bounds of ‘struct sockaddr_in[1]’ [-Warray-bounds]
    9 | #define SIN_GET_ADDR(a) ((struct sockaddr_in6 *)&a)->sin6_addr
      |                                                    ^~
module-emulator-icam.c:124:9: note: in expansion of macro ‘SIN_GET_ADDR’
  124 |         SIN_GET_ADDR(cservaddr) = cfg.rad_srvip;
      |         ^~~~~~~~~~~~
module-emulator-icam.c:108:28: note: object ‘cservaddr’ of size 16
  108 |         struct sockaddr_in cservaddr;
      |                            ^~~~~~~~~
CC  module-emulator-viaccess.c
CC  ffdecsa/ffdecsa.c
CC  module-cw-cycle-check.c
CC  module-dvbapi-chancache.c
CC  module-dvbapi.c
module-dvbapi.c: In function ‘request_cw’:
module-dvbapi.c:4147:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4147 |                 MD5(er->ecm, er->ecmlen, md5tmp);
      |                 ^~~
In file included from cscrypt/md5.h:5,
                 from module-dvbapi.c:29:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-dvbapi.c: In function ‘dvbapi_check_ecm_delayed_delivery’:
module-dvbapi.c:8930:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 8930 |                 MD5(er->ecm, er->ecmlen, md5tmp);
      |                 ^~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  module-gbox-helper.c
CC  module-gbox-sms.c
CC  module-gbox-remm.c
CC  module-gbox-cards.c
CC  module-gbox.c
CC  module-ird-guess.c
CC  module-lcd.c
CC  module-monitor.c
module-monitor.c: In function ‘secmon_auth_client’:
module-monitor.c:98:33: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   98 |                                 (crc == crc32(0L, MD5((uint8_t *)account->usr, cs_strlen(account->usr), md5tmp), MD5_DIGEST_LENGTH)))
      |                                 ^
In file included from cscrypt/md5.h:5,
                 from module-monitor.c:5:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-monitor.c:101:25: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  101 |                         aes_set_key(&module_data->aes_keys, (char *)MD5((uint8_t *)ESTR(account->pwd), cs_strlen(ESTR(account->pwd)), md5tmp));
      |                         ^~~~~~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  module-newcamd.c
CC  module-newcamd-des.c
CC  module-radegast.c
CC  module-stat.c
module-stat.c: In function ‘convert_to_beta_int’:
module-stat.c:800:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  800 |         memcpy(er->ecmd5, MD5(er->ecm + 13, er->ecmlen - 13, md5tmp), CS_ECMSTORESIZE);
      |         ^~~~~~
In file included from cscrypt/md5.h:5,
                 from module-stat.c:6:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-stat.c: In function ‘convert_to_nagra_int’:
module-stat.c:810:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  810 |         memcpy(er->ecmd5, MD5(er->ecm + 3, er->ecmlen - 3, md5tmp), CS_ECMSTORESIZE);
      |         ^~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  module-webif-lib.c
module-webif-lib.c: In function ‘calculate_opaque’:
module-webif-lib.c:123:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  123 |         char_to_hex(MD5((uint8_t *)noncetmp, cs_strlen(noncetmp), md5tmp), MD5_DIGEST_LENGTH, (uint8_t *)opaque);
      |         ^~~~~~~~~~~
In file included from cscrypt/md5.h:5,
                 from module-webif-lib.c:6:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif-lib.c: In function ‘calculate_nonce’:
module-webif-lib.c:189:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  189 |                 char_to_hex(MD5((uint8_t *)noncetmp, cs_strlen(noncetmp), md5tmp), MD5_DIGEST_LENGTH, (uint8_t *)result);
      |                 ^~~~~~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif-lib.c: In function ‘check_auth’:
module-webif-lib.c:277:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  277 |                 char_to_hex(MD5((uint8_t *)A1tmp, cs_strlen(A1tmp), md5tmp), MD5_DIGEST_LENGTH, (uint8_t *)A1);
      |                 ^~~~~~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif-lib.c:281:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  281 |                 char_to_hex(MD5((uint8_t *)A2tmp, cs_strlen(A2tmp), md5tmp), MD5_DIGEST_LENGTH, (uint8_t *)A2);
      |                 ^~~~~~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif-lib.c:285:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  285 |                 char_to_hex(MD5((uint8_t *)A3tmp, cs_strlen(A3tmp), md5tmp), MD5_DIGEST_LENGTH, (uint8_t *)A3);
      |                 ^~~~~~~~~~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif-lib.c: In function ‘send_file’:
module-webif-lib.c:494:33: warning: ‘snprintf’ argument 6 overlaps destination object ‘allocated’ [-Wrestrict]
  494 |                                 snprintf(allocated, newsize, "%s\n%s\n%s", CSS, separator, (oldallocated != NULL ? oldallocated : ""));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module-webif-lib.c:415:46: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
  415 |         char *mimetype = "", *result = " ", *allocated = NULL;
      |                                              ^~~~~~~~~
CC  module-webif-tpl.c
CC  module-webif.c
module-webif.c: In function ‘send_ncam_reader’:
module-webif.c:2031:25: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2031 |                         MD5((uint8_t *)rdr->label, cs_strlen(rdr->label), md5tmp);
      |                         ^~~
In file included from cscrypt/md5.h:5,
                 from module-webif.c:10:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
module-webif.c: In function ‘send_ncam_user_config’:
module-webif.c:4862:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 4862 |                 MD5((uint8_t *)account->usr, cs_strlen(account->usr), md5tmp);
      |                 ^~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  webif/pages.c
CC  reader-common.c
CC  reader-bulcrypt.c
CC  reader-conax.c
CC  reader-cryptoworks.c
CC  reader-dgcrypt.c
CC  reader-dre.c
CC  reader-dre-cas.c
CC  reader-dre-common.c
CC  reader-dre-st20.c
CC  reader-griffin.c
CC  reader-irdeto.c
CC  reader-nagra-common.c
CC  reader-nagra.c
CC  reader-nagracak7.c
CC  reader-seca.c
CC  reader-tongfang.c
CC  reader-streamguard.c
reader-streamguard.c: In function ‘decrypt_cw_ex’:
reader-streamguard.c:60:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   60 |         MD5(keybuf, 22, md5tmp);
      |         ^~~
In file included from cscrypt/md5.h:5,
                 from reader-streamguard.c:5:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
reader-streamguard.c:66:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   66 |         MD5(md5tmp, 20, md5key);
      |         ^~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
reader-streamguard.c: In function ‘streamguard_card_init’:
reader-streamguard.c:203:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  203 |                 MD5(seed, sizeof(seed), md5_key);
      |                 ^~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  reader-jet.c
CC  reader-viaccess.c
CC  reader-videoguard-common.c
reader-videoguard-common.c: In function ‘cAES_SetKey’:
reader-videoguard-common.c:347:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  347 |         AES_set_encrypt_key(key, 128, &(csystem_data->ekey));
      |         ^~~~~~~~~~~~~~~~~~~
In file included from cscrypt/aes.h:2,
                 from globals.h:121,
                 from reader-videoguard-common.c:5:
/usr/include/openssl/aes.h:51:5: note: declared here
   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
reader-videoguard-common.c: In function ‘cAES_Encrypt’:
reader-videoguard-common.c:355:9: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  355 |         for(i = 0; i < len; i += 16) { AES_encrypt(data + i, crypted + i, &(csystem_data->ekey)); }
      |         ^~~
/usr/include/openssl/aes.h:57:6: note: declared here
   57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
CC  reader-videoguard1.c
CC  reader-videoguard12.c
CC  reader-videoguard2.c
reader-videoguard2.c: In function ‘do_post_dw_hash’:
reader-videoguard2.c:232:41: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  232 |                                         MD5(buffer, 8 + (ecm_header_data[ecmi] & 0x7D), md5tmp);
      |                                         ^~~
In file included from cscrypt/md5.h:5,
                 from reader-videoguard2.c:3:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
reader-videoguard2.c: In function ‘videoguard2_card_init’:
reader-videoguard2.c:1169:9: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1169 |         AES_set_decrypt_key(dimeno_magic, 128, &(csystem_data->astrokey));
      |         ^~~~~~~~~~~~~~~~~~~
In file included from cscrypt/aes.h:2,
                 from globals.h:121,
                 from reader-videoguard2.c:1:
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
reader-videoguard2.c: In function ‘videoguard2_do_ecm’:
reader-videoguard2.c:1384:65: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1384 |                                                                 AES_set_decrypt_key(keybuf, 128, &aeskey);
      |                                                                 ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
reader-videoguard2.c:1385:65: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1385 |                                                                 AES_decrypt(aesbuf, aesbuf, &aeskey);
      |                                                                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
reader-videoguard2.c:1441:65: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1441 |                                                                 AES_set_decrypt_key(keybuf, 128, &aeskey);
      |                                                                 ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
reader-videoguard2.c:1442:65: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1442 |                                                                 AES_decrypt(aesbuf, aesbuf, &aeskey);
      |                                                                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
reader-videoguard2.c:1502:33: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1502 |                                 AES_decrypt(buffer, buffer, &(csystem_data->astrokey));
      |                                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
CC  ncam-aes.c
ncam-aes.c: In function ‘aes_set_key’:
ncam-aes.c:10:9: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   10 |         AES_set_decrypt_key((const uint8_t *)key, 128, &aes->aeskey_decrypt);
      |         ^~~~~~~~~~~~~~~~~~~
In file included from cscrypt/aes.h:2,
                 from globals.h:121,
                 from ncam-aes.c:3:
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
ncam-aes.c:11:9: warning: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   11 |         AES_set_encrypt_key((const uint8_t *)key, 128, &aes->aeskey_encrypt);
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:51:5: note: declared here
   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
ncam-aes.c: In function ‘aes_decrypt’:
ncam-aes.c:29:17: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   29 |                 AES_decrypt(buf + i, buf + i, &aes->aeskey_decrypt);
      |                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
ncam-aes.c: In function ‘aes_encrypt_idx’:
ncam-aes.c:38:17: warning: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   38 |                 AES_encrypt(buf + i, buf + i, &aes->aeskey_encrypt);
      |                 ^~~~~~~~~~~
/usr/include/openssl/aes.h:57:6: note: declared here
   57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
ncam-aes.c: In function ‘aes_cbc_encrypt’:
ncam-aes.c:44:9: warning: ‘AES_cbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   44 |         AES_cbc_encrypt(buf, buf, n, &aes->aeskey_encrypt, iv, AES_ENCRYPT);
      |         ^~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:66:6: note: declared here
   66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~~~~~
ncam-aes.c: In function ‘aes_cbc_decrypt’:
ncam-aes.c:49:9: warning: ‘AES_cbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   49 |         AES_cbc_encrypt(buf, buf, n, &aes->aeskey_decrypt, iv, AES_DECRYPT);
      |         ^~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:66:6: note: declared here
   66 | void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~~~~~
ncam-aes.c: In function ‘add_aes_entry’:
ncam-aes.c:67:17: warning: ‘AES_set_decrypt_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   67 |                 AES_set_decrypt_key((const uint8_t *)aesKey, 128, &(new_entry->key));
      |                 ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/aes.h:54:5: note: declared here
   54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
ncam-aes.c: In function ‘aes_decrypt_from_list’:
ncam-aes.c:227:17: warning: ‘AES_decrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  227 |                 { AES_decrypt(buf + i, buf + i, &(current->key)); }
      |                 ^
/usr/include/openssl/aes.h:60:6: note: declared here
   60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
      |      ^~~~~~~~~~~
CC  ncam-array.c
CC  ncam-hashtable.c
CC  ncam-cache.c
CC  ncam-chk.c
CC  ncam-client.c
ncam-client.c: In function ‘cs_auth_client’:
ncam-client.c:445:41: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  445 |                                         client->pcrc = crc32(0L, MD5((uint8_t *)(ESTR(account->pwd)), cs_strlen(ESTR(account->pwd)), md5tmp), MD5_DIGEST_LENGTH);
      |                                         ^~~~~~
In file included from cscrypt/md5.h:5,
                 from ncam-client.c:5:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
ncam-client.c: In function ‘cs_reinit_clients’:
ncam-client.c:606:25: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  606 |                         if(account && !account->disabled && cl->pcrc == crc32(0L, MD5((uint8_t *)ESTR(account->pwd), cs_strlen(ESTR(account->pwd)), md5tmp), MD5_DIGEST_LENGTH))
      |                         ^~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  ncam-conf.c
CC  ncam-conf-chk.c
CC  ncam-conf-mk.c
CC  ncam-config-account.c
CC  ncam-config-global.c
CC  ncam-config-reader.c
CC  ncam-config.c
CC  ncam-ecm.c
ncam-ecm.c: In function ‘get_cw’:
ncam-ecm.c:2775:9: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2775 |         memcpy(er->ecmd5, MD5(er->ecm + offset, er->ecmlen - offset, md5tmp), CS_ECMSTORESIZE);
      |         ^~~~~~
In file included from cscrypt/md5.h:5,
                 from ncam-ecm.c:4:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  ncam-emm.c
ncam-emm.c: In function ‘do_emm’:
ncam-emm.c:600:25: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  600 |                         MD5(ep->emm, SCT_LEN(ep->emm), md5tmp);
      |                         ^~~
In file included from cscrypt/md5.h:5,
                 from ncam-emm.c:4:
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
ncam-emm.c: In function ‘reader_do_emm’:
ncam-emm.c:668:17: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  668 |                 MD5(ep->emm, SCT_LEN(ep->emm), md5tmp);
      |                 ^~~
/usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
      |                                      ^~~
CC  ncam-emm-cache.c
CC  ncam-failban.c
CC  ncam-files.c
CC  ncam-garbage.c
CC  ncam-lock.c
CC  ncam-log.c
CC  ncam-log-reader.c
CC  ncam-net.c
CC  ncam-llist.c
CC  ncam-reader.c
CC  ncam-simples.c
CC  ncam-string.c
CC  ncam-time.c
CC  ncam-work.c
CC  ncam.c
ncam.c: In function ‘ssl_init’:
ncam.c:57:9: warning: ‘ERR_load_BIO_strings’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   57 |         ERR_load_BIO_strings();
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/cryptoerr.h:17,
                 from /usr/include/openssl/crypto.h:38,
                 from ncam.c:50:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
   31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
ncam.c:58:9: warning: ‘ERR_load_SSL_strings’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   58 |         ERR_load_SSL_strings();
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/sslerr.h:17,
                 from /usr/include/openssl/ssl.h:43,
                 from ncam.c:51:
/usr/include/openssl/sslerr_legacy.h:29:27: note: declared here
   29 | OSSL_DEPRECATEDIN_3_0 int ERR_load_SSL_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
CONF    build/x86_64-linux-gnu-ssl-libcurl/config.c
LINK    /usr/local/src/ncam.git/Distribution/ncam.debug
STRIP   /usr/local/src/ncam.git/Distribution/ncam
fairbird commented 1 year ago

I don't have any error on my ubuntu 23.04 with openssl 3.0.8

~$ apt list openssl Listing... Done openssl/lunar-updates,lunar-security,now 3.0.8-1ubuntu1.2 amd64 [installed,automatic] openssl/lunar-updates,lunar-security 3.0.8-1ubuntu1.2 i386

make --no-print-directory \ CROSS=/home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/x86_64-ubuntu16.04-linux-gnu- \ CONF_DIR=/var/tuxbox/config \ USE_PCSC=1 \ PCSC_LIB=-lpcsclite \ EXTRA_FLAGS="-m64 -I. -s" \ USE_LIBUSB=1 \ LIBUSB_LIB=-lusb-1.0 -lrt \ -j4 --jobserver-auth=3,4 -- USE_LIBCURL=1 USE_SSL=1 USE_LIBCRYPTO=1 target=x64 ARCH=x64 NCAM_BIN=ncam-libusb-pcsc.x86_64-13.7 make[1]: warning: -j4 forced in submake: resetting jobserver mode. +------------------------------------------------------------------------------- | NCam ver: 13.7 rev: r1 target: x86_64-ubuntu16.04-linux-gnu-ssl-libcurl-libusb-pcsc | Tools: | CROSS = /home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/x86_64-ubuntu16.04-linux-gnu- | CC = /home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/x86_64-ubuntu16.04-linux-gnu-gcc | Settings: | CONF_DIR = /var/tuxbox/config | CC_OPTS = -Os -ggdb -pipe -ffunction-sections -fdata-sections -funroll-loops -fomit-frame-pointer -fno-schedule-insns -fwrapv -fomit-frame-pointer -funroll-loops -fno-tree-vectorize | CC_WARN = -W -Wall -Wshadow -Wno-shadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition | CFLAGS = -fexpensive-optimizations -mmmx -msse -msse2 -msse3 -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBCURL=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/../x86_64-ubuntu16.04-linux-gnu/sysroot/usr/include/PCSC -I/home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/../x86_64-ubuntu16.04-linux-gnu/sysroot/usr/include/../local/include/PCSC -m64 -I. -s | LDFLAGS = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBCURL=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/../x86_64-ubuntu16.04-linux-gnu/sysroot/usr/include/PCSC -I/home/raed/NCam/cross/Toolchain-x86_64-ubuntu16.04-linux-gnu/bin/../x86_64-ubuntu16.04-linux-gnu/sysroot/usr/include/../local/include/PCSC -m64 -I. -s | LIBS = -lssl -lcrypto -lcurl -lpng -lz -lusb-1.0 -lpcsclite -lm -lpthread -ldl | UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBCURL=1 USE_LIBUSB=1 USE_PCSC=1 | Config: | Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CS_CACHEEX_AIO CW_CYCLE_CHECK WITH_EMU WITH_ARM_NEON | Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM CONSTCW | Readers : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG STREAMGUARD JET BULCRYPT GRIFFIN DGCRYPT | CardRdrs : PHOENIX INTERNAL STINGER SMART PCSC | Compiler : x86_64-ubuntu16.04-linux-gnu-gcc (crosstool-NG 1.24.0.479_aa52493_dirty) 11.2.0 | Config : build/x86_64-ubuntu16.04-linux-gnu-ssl-libcurl-libusb-pcsc/config.mak | Binary : ncam-libusb-pcsc.x86_64-13.7 +------------------------------------------------------------------------------- GEN webif/pages.c GEN Compressed 693480 template bytes into 298430 bytes. 395050 saved bytes (56.97%). CC cscrypt/des.c CC cscrypt/i_cbc.c CC cscrypt/i_ecb.c CC cscrypt/i_skey.c CC cscrypt/md5.c CC cscrypt/rc6.c CC cscrypt/mdc2.c CC cscrypt/fast_aes.c CC cscrypt/sha256.c CC csctapi/atr.c CC csctapi/icc_async.c CC csctapi/io_serial.c CC csctapi/protocol_t0.c CC csctapi/protocol_t1.c CC csctapi/ifd_pcsc.c CC csctapi/ifd_phoenix.c CC csctapi/ifd_sci.c CC csctapi/ifd_smartreader.c CC csctapi/ifd_stinger.c CC minilzo/minilzo.c CC module-anticasc.c CC module-cacheex.c CC module-camd35-cacheex.c CC module-camd35.c CC module-cccam-cacheex.c CC module-cccam.c CC module-cccshare.c CC module-constcw.c CC module-emulator.c CC module-emulator-nemu.c CC module-emulator-streamserver.c CC module-emulator-biss.c CC module-emulator-cryptoworks.c CC module-emulator-director.c CC module-emulator-irdeto.c CC module-emulator-nagravision.c CC module-emulator-powervu.c CC module-emulator-icam.c CC module-emulator-viaccess.c CC ffdecsa/ffdecsa.c CC module-csp.c CC module-cw-cycle-check.c CC module-dvbapi-chancache.c CC module-dvbapi.c CC module-gbox-helper.c CC module-gbox-sms.c CC module-gbox-remm.c CC module-gbox-cards.c CC module-gbox.c CC module-ird-guess.c CC module-monitor.c CC module-newcamd.c CC module-newcamd-des.c CC module-radegast.c CC module-scam.c CC module-stat.c CC module-webif-lib.c CC module-webif-tpl.c CC module-webif.c CC webif/pages.c CC reader-common.c CC reader-bulcrypt.c CC reader-conax.c CC reader-cryptoworks.c CC reader-dgcrypt.c CC reader-dre.c CC reader-dre-cas.c CC reader-dre-common.c CC reader-dre-st20.c CC reader-griffin.c CC reader-irdeto.c CC reader-nagra-common.c CC reader-nagra.c CC reader-nagracak7.c CC reader-seca.c CC reader-tongfang.c CC reader-streamguard.c CC reader-jet.c CC reader-viaccess.c CC reader-videoguard-common.c CC reader-videoguard1.c CC reader-videoguard12.c CC reader-videoguard2.c CC ncam-aes.c CC ncam-array.c CC ncam-hashtable.c CC ncam-cache.c CC ncam-chk.c CC ncam-client.c CC ncam-conf.c CC ncam-conf-chk.c CC ncam-conf-mk.c CC ncam-config-account.c CC ncam-config-global.c CC ncam-config-reader.c CC ncam-config.c CC ncam-ecm.c CC ncam-emm.c CC ncam-emm-cache.c CC ncam-failban.c CC ncam-files.c CC ncam-garbage.c CC ncam-lock.c CC ncam-log.c CC ncam-log-reader.c CC ncam-net.c CC ncam-llist.c CC ncam-reader.c CC ncam-simples.c CC ncam-string.c CC ncam-time.c CC ncam-work.c CC ncam.c CONF build/x86_64-ubuntu16.04-linux-gnu-ssl-libcurl-libusb-pcsc/config.c BUILD Distribution/list_smargo-13.7-r1-x86_64-ubuntu16.04-linux-gnu-ssl-libcurl-libusb-pcsc CC cscrypt/jet_dh.c CC cscrypt/jet_twofish.c LINK ncam-libusb-pcsc.x86_64-13.7.debug STRIP ncam-libusb-pcsc.x86_64-13.7

END : BUILD

Build Ncam Started : 18/06/23 18:34:06 Build Ncam Finished : 18/06/23 18:35:09 Total compile time is 63 seconds ./Distribution/ncam-libusb-pcsc.x86_64-13.7

MegaV0lt commented 1 year ago

Maybe my version is too new:

[~] # apt list openssl
Auflistung… Fertig
openssl/stable,now 3.0.9-1 amd64  [installiert]

I try tomorrow, when at home

fairbird commented 1 year ago

Already I have update the source. You can try to compile ncam again. https://github.com/fairbird/NCam/commit/d73e0f5ff12b88eeaae528d1723559f91a1cedca

MegaV0lt commented 1 year ago

Thank you! The warnings with ssl are gone. But some more present. https://github.com/fairbird/NCam/issues/21#issue-1762969901