niamtokik / ansible_arweave

Ansible role for Arweave
MIT License
0 stars 1 forks source link

Warning deprecated function on OpenSSL 3+ #2

Open niamtokik opened 6 months ago

niamtokik commented 6 months ago

fedora 39 and ubuntu 24.04 impacted.

/mnt/HC_Volume_100742176/arweave/apps/arweave/c_src/vdf.cpp:299:20: warning: ‘int SHA256_Init(SHA256_CTX*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  299 |         SHA256_Init(&sha256);
      |         ~~~~~~~~~~~^~~~~~~~~
/usr/include/openssl/sha.h:73:27: note: declared here
   73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
      |                           ^~~~~~~~~~~
/mnt/HC_Volume_100742176/arweave/apps/arweave/c_src/vdf.cpp:300:22: warning: ‘int SHA256_Update(SHA256_CTX*, const void*, size_t)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  300 |         SHA256_Update(&sha256, prevOutput, VDF_SHA_HASH_SIZE);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:74:27: note: declared here
   74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
      |                           ^~~~~~~~~~~~~
/mnt/HC_Volume_100742176/arweave/apps/arweave/c_src/vdf.cpp:301:22: warning: ‘int SHA256_Update(SHA256_CTX*, const void*, size_t)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  301 |         SHA256_Update(&sha256, resetSeed, VDF_SHA_HASH_SIZE);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:74:27: note: declared here
   74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
      |                           ^~~~~~~~~~~~~
/mnt/HC_Volume_100742176/arweave/apps/arweave/c_src/vdf.cpp:302:21: warning: ‘int SHA256_Final(unsigned char*, SHA256_CTX*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  302 |         SHA256_Final(res, &sha256);
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/openssl/sha.h:76:27: note: declared here
   76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
niamtokik commented 6 months ago

see: https://www.openssl.org/docs/manmaster/man3/EVP_DigestInit_ex.html