You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to build the library on macOS I get an error:
ledger-secure-sdk/src/os.c:331:5: error: call to undeclared function 'explicit_bzero'
There is no explicit_bzero function in macOS SDK's strings.h. There is only bzero function.
Your environment
OS and version: macOS 14.1.2 (23B2091)
branch that causes this issue: master
Proposed solution
explicit_bzero is not portable and is deprecated in favor of memset. There is the memset_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.
Hello @shamilsan, you can use our docker image, it's easier to use and it's working on macOS.
Thank you for the suggestion, @tdejoigny-ledger
Yes, I can, but native compilation is simpler and faster for me. Anyway, it is better not to use obsolete functions as they can be removed in the future. And there's no significant barrier to support macOS too.
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: