summaryrefslogtreecommitdiff
path: root/cmake/dependencies/explicit_bzero.cmake
Commit message (Collapse)AuthorAgeFilesLines
* lib: Fix OpenSSL includes and explicit_bzero on OSXDimitri Staessens2 days1-0/+1
The include headers and NIDs are different on macOS X. It also doesn't have explicit_bzero. The crypt.h includes are now guarded to work on OS X (trying to avoid the includes by defining the OpenSSL mac header guard led to a whole list of other issues). The explicit zero'ing of buffers temporarily holding secrets has now been abstracted in a crypt_secure_clear() function defaulting to OpenSSL_cleanse, explicit_bzero (if present) or a best-effort option using a volatile pointer. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>