Skip to content

Remove mbedtls alt definition for platform_zeroize #3072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

rjoleary
Copy link

The mbedtls has a function by the same name which creates a linker error.

Fixes #3070

@steven-bellock steven-bellock marked this pull request as draft May 16, 2025 18:09
@jyao1
Copy link
Member

jyao1 commented May 19, 2025

please fix CI failure.

@jyao1
Copy link
Member

jyao1 commented May 19, 2025

maybe put MBEDTLS_PLATFORM_ZEROIZE_ALT around mbedtls_platform_zeroize ?

@rjoleary rjoleary force-pushed the feature/zeroize branch 3 times, most recently from 4697042 to b8e8be6 Compare July 16, 2025 00:59
In the event you are compiling with a custom mbedtls config which does
not define MBEDTLS_PLATFORM_ZEROIZE_ALT, there will be two definitions
of mbedtls_platform_zeroize and a linker error.

Signed-off-by: Ryan O'Leary <roleary@nvidia.com>
@rjoleary-nv
Copy link
Contributor

maybe put MBEDTLS_PLATFORM_ZEROIZE_ALT around mbedtls_platform_zeroize ?

Thank you! I addressed the build failures with your suggested fix.

@rjoleary rjoleary changed the title Remove mbedtls_platform_zeroize definition Remove mbedtls alt definition for platform_zeroize Jul 16, 2025
@rjoleary rjoleary marked this pull request as ready for review July 16, 2025 02:00
@steven-bellock
Copy link
Contributor

@rjoleary In your build system you are commenting out

#define MBEDTLS_PLATFORM_ZEROIZE_ALT
correct?

@rjoleary
Copy link
Author

@rjoleary In your build system you are commenting out

#define MBEDTLS_PLATFORM_ZEROIZE_ALT

correct?

No, I do not use this file at all.

In our project, multiple libraries depend on mbedtls which results in a diamond problem. I extracted all the common mbedtls settings into a common config file which is used across multiple libraries in our project.

@steven-bellock steven-bellock added the build Build system label Jul 16, 2025
@jyao1 jyao1 merged commit d840d09 into DMTF:main Jul 17, 2025
97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mbedtls_platform_zeroize definition conflicts with mbedtls
4 participants