diff options
author | sfan5 <sfan5@live.de> | 2024-05-13 20:27:17 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-06-11 16:58:22 +0200 |
commit | 1b1e9cadc5c4a4ea3a11d30f17ac7ac9f4018d8f (patch) | |
tree | d6b276f2c6aeade72cfa2cae5095235ea50cc56a /libavcodec/avuidec.c | |
parent | 827578ca761e326fa4df7b6ed0b87421b5775fbd (diff) | |
download | ffmpeg-1b1e9cadc5c4a4ea3a11d30f17ac7ac9f4018d8f.tar.gz |
lavf/tls_mbedtls: fix handling of certification validation failures
We manually check the verification status after the handshake has completed
using mbedtls_ssl_get_verify_result(). However with VERIFY_REQUIRED
mbedtls_ssl_handshake() already returns an error, so this code is never reached.
Fix that by using VERIFY_OPTIONAL, which performs the verification but
does not abort the handshake.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/avuidec.c')
0 files changed, 0 insertions, 0 deletions