[Privoxy-devel] mbedtls_md5 deprecated

Roland Rosenfeld roland at spinnaker.de
Thu Jan 21 18:10:10 UTC 2021


Hi!

When compiling privoxy I currently see one compiler warning on my
Debian stable system:

ssl.c: In function ‘host_to_hash’:
ssl.c:1783:4: warning: ‘mbedtls_md5’ is deprecated [-Wdeprecated-declarations]
    mbedtls_md5((unsigned char *)csp->http->host, strlen(csp->http->host),
    ^~~~~~~~~~~
In file included from ssl.c:40:
/usr/include/mbedtls/md5.h:284:25: note: declared here
 MBEDTLS_DEPRECATED void mbedtls_md5( const unsigned char *input,
                         ^~~~~~~~~~~

According to https://tls.mbed.org/api/deprecated.html mbedtls_md5 was
deprecated in 2.7.0, which was released 2018-02-05.
It could be replaced by mbedtls_md5_ret().

Not sure, whether we should prefer to support older or newer versions,
just wanted to mention this warning...

Greetings
Roland


More information about the Privoxy-devel mailing list