Hello,
I have a project that uses JWT.
When migrating from nRFConnect SDK 1.6.1 to 1.9.1, build failed with message: multiple definition of `default_CSPRNG'
The error can be easly replicated by opening a BLE sample (peripheral_uart) and adding to the prj.conf:
CONFIG_JWT=y
CONFIG_JWT_SIGN_ECDSA=y
The error is :
j): in function `default_CSPRNG':
C:\ncs\v1.9.1\zephyr\subsys\jwt\jwt.c:273: multiple definition of `default_CSPRNG'; zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a(hci_ecc.c.obj):C:\ncs\v1.9.1\zephyr\subsys\bluetooth\host\hci_ecc.c:351: first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Modifying the name of default_CSPRNG to something else in the file jwt.c allows the build to finish correctly but i don't know if it might cause issue elsewhere.
Anyone knows a proper way to use JWT?
Thank you
Best regards