[FFmpeg-devel] [PATCH] libavformat/tls_mbedtls.c: Accommodating to mbedtls v3.0.0 API changes

meryacine omar.groza at gmail.com
Mon Nov 1 19:42:21 EET 2021


There were breaking API changes in mbedtls from v2.27.0 to v3.0.0.
This patch accounts for these changes.

Changes:
- mbedtls/certs.h is no longer imported. See https://github.com/ARMmbed/mbedtls/pull/4119.
- mbedtls/config.h is replaced with mbedtls/build_info.h. See https://github.com/ARMmbed/mbedtls/blob/v3.0.0/docs/3.0-migration-guide.md#introduce-a-level-of-indirection-and-versioning-in-the-config-files.
- MBEDTLS_ERR_SSL_NO_USABLE_CIPHERSUITE is replaced with MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE. See https://github.com/ARMmbed/mbedtls/blob/v3.0.0/docs/3.0-migration-guide.md#changes-in-the-ssl-error-code-space.
- The function mbedtls_pk_parse_keyfile should now be given 2 more arguments. See https://github.com/ARMmbed/mbedtls/blob/v3.0.0/docs/3.0-migration-guide.md#some-functions-gained-an-rng-parameter.

Signed-off-by: meryacine <omar.groza at gmail.com>
---
 libavformat/tls_mbedtls.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-tls_mbedtls.c-Accommodating-to-mbedtls-v.patch
Type: text/x-patch
Size: 1525 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211101/76b39c8e/attachment.bin>


More information about the ffmpeg-devel mailing list