extmod/modtls_mbedtls: Implement cert verification callback for mbedtls.

This is a useful alternative to .getpeercert() when the certificate is not
stored to reduce RAM usage.

Signed-off-by: Felix Dörre <felix@dogcraft.de>
This commit is contained in:
Felix Dörre
2024-02-01 09:22:56 +00:00
committed by Damien George
parent b802f0f8ab
commit aaba1d8a6c
5 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
verify_callback: <class 'bytes'> True 2
verify_callback: <class 'bytes'> True 1
verify_callback: <class 'bytes'> True 0
verify_callback_fail: <class 'bytes'> True 2
MBEDTLS_ERR_ERROR_GENERIC_ERROR