summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorMirko Vogt <mirko-dev|mpy@nanl.de>2023-08-01 09:53:14 +0000
committerDamien George <damien@micropython.org>2023-09-03 20:32:06 +1000
commit1b03518e379208d4ee37362ee68ec6696c366efa (patch)
tree6c879c17cff40cb4e996efa2424c09771b9b255d /docs/esp32/tutorial
parentffb43b2dd37f10f48612d369b5cad9731c2a0597 (diff)
extmod/modssl_mbedtls: Call func psa_crypto_init if PSA is used.
Whenever the PSA interface is used (if MBEDTLS_PSA_CRYPTO is defined), psa_crypto_init() needs to be called to initialise the global PSA data struct, before any PSA related operations. TLSv1.3 depends on the PSA interface, TLSv1.2 only uses the PSA stack if MBEDTLS_USE_PSA_CRYPTO is defined. Without psa_crypto_init() every PSA related call will result in -0x6C00/-27648 which translates to "SSL - Internal error (eg, unexpected failure in lower-level module)". The error is misleading, especially since mbedtls in its docs itself advices "to return #PSA_ERROR_BAD_STATE or some other applicable error.". Signed-off-by: Mirko Vogt <mirko-dev|mpy@nanl.de>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions