PurpleI2P / i2pd

🛡 I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website
BSD 3-Clause "New" or "Revised" License
3.26k stars 423 forks source link

Please disable LibreSSL workaround when LibreSSL version >= 4.0.0 #2108

Closed SystemFailureNet closed 1 week ago

SystemFailureNet commented 1 week ago

Hello,

Commit 0c924836cf9ae04cd12e2647e6edd5c0f896ff7b allowed to compile i2pd with LibreSSL >= 3.9, but this workaround is not necessary anymore with LibreSSL 4.0.0, and could needlessly leave copies of secrets in memory.

LibreSSL 4.0.0 has been released last month and is now the version used by OpenBSD -stable (7.6, which was released recently).

This pull request simply disables this workaround when LibreSSL version is equal to, or greater than 4.0.0. In fact, it is just a copy from the patch introduced by Theo Buehler, from the OpenBSD project, when he updated the net/i2pd port to the latest version : https://github.com/openbsd/ports/commit/17578402f47dff36dde0f975e9df1c7e2830b95f