Skip to content
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

mbedtls and littlefs on a STM32L4 #38202

Closed
jhfigueiredo opened this issue Sep 1, 2021 Discussed in #37329 · 1 comment
Closed

mbedtls and littlefs on a STM32L4 #38202

jhfigueiredo opened this issue Sep 1, 2021 Discussed in #37329 · 1 comment

Comments

@jhfigueiredo
Copy link

Discussed in #37329

Originally posted by jhfigueiredo July 30, 2021
I'm quite new to Zephyr so this might just be some missing configuration or lack of knowledge.
The objective is to load a x509 certificate from the filesystem (littlefs) using the mbedtls mbedtls_x509_crt_parse_file function. For that I need to include MBEDTLS_FS_IO. But when I do include this configuration it includes <dirent.h> which then returns the following error:

In file included from /home/jhf/zephyr-sdk-0.12.4/arm-zephyr-eabi/arm-zephyr-eabi/sys-include/dirent.h:39,
from /home/jhf/zephyrproject/modules/crypto/mbedtls/mbedtls/library/x509_crt.c:78:
/home/jhf/zephyr-sdk-0.12.4/arm-zephyr-eabi/arm-zephyr-eabi/sys-include/sys/dirent.h:10:2: error: #error "<dirent.h> not supported"
10 | #error "<dirent.h> not supported"
| ^~~~~

I have a work around but would imply changes to the mbedtls original code, which I really would try to avoid.
Any help would be appreciated.

@cfriedt
Copy link
Member

cfriedt commented Sep 7, 2021

@jhfigueiredo - please continue in the original discussion.

@cfriedt cfriedt closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants