Can't build on macOS due to using the deprecated explicit_bzero
function
#483
Labels
bug
Something isn't working
explicit_bzero
function
#483
Description
When trying to build the library on macOS I get an error:
There is no
explicit_bzero
function in macOS SDK'sstrings.h
. There is onlybzero
function.Your environment
Proposed solution
explicit_bzero
is not portable and is deprecated in favor ofmemset
. There is thememset_explicit
function in the C23 standard, but it has not been added to macOS SDK yet.Maybe it's worth implementing a custom function for zeroing sensitive information.
The text was updated successfully, but these errors were encountered: