ukaea / UDA

Universal Data Access library to provide data over the network in a unified data object.
https://ukaea.github.io/UDA/
Apache License 2.0
11 stars 4 forks source link

Sha1_xx have been deprecated long time ago... #14

Closed DorisBDR closed 1 year ago

DorisBDR commented 1 year ago

as UDA server starts to be used widely in production environment, and in some cases it is open to external world, it is strongly recommended to avoid using deprecated methods in openssl... these methods have been replaced with EVP_DigestXX https://www.openssl.org/docs/man3.0/man7/migration_guide.html Deprecated low-level digest functions Use of low-level digest functions such as SHA1_Init(3) have been informally discouraged from use for a long time. Applications should instead use the the high level EVP APIs EVP_DigestInit_ex(3), EVP_DigestUpdate(3) and EVP_DigestFinal_ex(3), or the quick one-shot EVP_Q_digest(3).

Note that the functions SHA1(3), SHA224(3), SHA256(3), SHA384(3) and SHA512(3) have changed to macros that use EVP_Q_digest(3).

Example of usage https://cpp.hotexamples.com/fr/examples/-/-/EVP_DigestInit_ex/cpp-evp_digestinit_ex-function-examples.html

DorisBDR commented 1 year ago

well with the code in github, this part has been rewritten...and i don't see these methods used, so i'm closing the issue