Open pbiering opened 3 years ago
A tiny bit off-topic, but have you considered just using libmd? https://www.hadrons.org/software/libmd/
The API is really similar to OpenSSL's (basically, s/MD5_/MD5/', e.g.
MD5_Init->
MD5Init`). It's a dependency of dpkg's (and written by the same author) so guaranteed to be present in Debian/Ubuntu systems.
It's a port of code found in the BSDs. On those systems it'd be unnecessary, as the base system already supports these functions.
Honestly if I were you, I'd just switch to it and remove all OpenSSL support + both embedded copies.
Thank you for the hint using libmd
, for now optional support implemented by https://github.com/pbiering/ipv6calc/commit/cf02e4d075b1269b85aae9391a6e5d98358a1a87
Found that at least on Fedora Linux 39 also libmd
misses support for static build.
Awesome :)
current "master" contains now support for OpenSSL 3 which deprecated the really old MD5 functions.
But after switching to new EVP MD5 functions, static build reports a warning, don't know how to solve this proper.