* [FFmpeg-devel] [PATCH v3 1/6] lavf/tls_mbedtls: handle more error codes for
@ 2024-06-04 10:25 sfan5
2024-06-07 11:30 ` sfan5
0 siblings, 1 reply; 2+ messages in thread
From: sfan5 @ 2024-06-04 10:25 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: v3-0001-lavf-tls_mbedtls-handle-more-error-codes-for-huma.patch --]
[-- Type: text/x-patch, Size: 1794 bytes --]
From 7024782ebac9471194761fba9f60834ed7769efd Mon Sep 17 00:00:00 2001
From: sfan5 <sfan5@live.de>
Date: Mon, 13 May 2024 20:22:44 +0200
Subject: [PATCH v3 1/6] lavf/tls_mbedtls: handle more error codes for
human-readable messages
Signed-off-by: sfan5 <sfan5@live.de>
---
libavformat/tls_mbedtls.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/libavformat/tls_mbedtls.c b/libavformat/tls_mbedtls.c
index 1a182e735e..02f08fddbb 100644
--- a/libavformat/tls_mbedtls.c
+++ b/libavformat/tls_mbedtls.c
@@ -138,6 +138,9 @@ static void handle_handshake_error(URLContext *h, int ret)
case MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE:
av_log(h, AV_LOG_ERROR, "TLS handshake failed.\n");
break;
+ case MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION:
+ av_log(h, AV_LOG_ERROR, "TLS protocol version mismatch.\n");
+ break;
#endif
case MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE:
av_log(h, AV_LOG_ERROR, "A fatal alert message was received from the peer, has the peer a correct certificate?\n");
@@ -145,9 +148,15 @@ static void handle_handshake_error(URLContext *h, int ret)
case MBEDTLS_ERR_SSL_CA_CHAIN_REQUIRED:
av_log(h, AV_LOG_ERROR, "No CA chain is set, but required to operate. Was the CA correctly set?\n");
break;
+ case MBEDTLS_ERR_SSL_INTERNAL_ERROR:
+ av_log(h, AV_LOG_ERROR, "Internal error encountered.\n");
+ break;
case MBEDTLS_ERR_NET_CONN_RESET:
av_log(h, AV_LOG_ERROR, "TLS handshake was aborted by peer.\n");
break;
+ case MBEDTLS_ERR_X509_CERT_VERIFY_FAILED:
+ av_log(h, AV_LOG_ERROR, "Certificate verification failed.\n");
+ break;
default:
av_log(h, AV_LOG_ERROR, "mbedtls_ssl_handshake returned -0x%x\n", -ret);
break;
--
2.45.2
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/6] lavf/tls_mbedtls: handle more error codes for
2024-06-04 10:25 [FFmpeg-devel] [PATCH v3 1/6] lavf/tls_mbedtls: handle more error codes for sfan5
@ 2024-06-07 11:30 ` sfan5
0 siblings, 0 replies; 2+ messages in thread
From: sfan5 @ 2024-06-07 11:30 UTC (permalink / raw)
To: ffmpeg-devel
Am 04.06.24 um 12:25 schrieb sfan5:
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
Will commit this patch series in 3 days if there are no objections.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-07 11:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 10:25 [FFmpeg-devel] [PATCH v3 1/6] lavf/tls_mbedtls: handle more error codes for sfan5
2024-06-07 11:30 ` sfan5
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git