From: Marvin Scholz <epirat07@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v4 3/3] avformat/tls_openssl: load default verify locations
Date: Tue, 22 Jul 2025 03:00:01 +0200
Message-ID: <8477CE88-2573-40F5-A6C7-F1D3D6699C90@gmail.com> (raw)
In-Reply-To: <20250710115117.13102-3-epirat07@gmail.com>
On 10 Jul 2025, at 13:51, Marvin Scholz wrote:
> When no explicit CAs file is set, load the default locations,
> else there is no way for verification to succeed.
>
> This matches the behavior of other TLS backends.
> ---
> libavformat/tls_openssl.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c
> index 33b3a46dfd..79801b7261 100644
> --- a/libavformat/tls_openssl.c
> +++ b/libavformat/tls_openssl.c
> @@ -699,6 +699,12 @@ static av_cold int openssl_init_ca_key_cert(URLContext *h)
> if (c->ca_file) {
> if (!SSL_CTX_load_verify_locations(p->ctx, c->ca_file, NULL))
> av_log(h, AV_LOG_ERROR, "SSL_CTX_load_verify_locations %s\n", openssl_get_error(p));
> + } else {
> + if (!SSL_CTX_set_default_verify_paths(p->ctx)) {
> + // Only log the failure but do not error out, as this is not fatal
> + av_log(h, AV_LOG_WARNING, "Failure setting default verify locations: %s\n",
> + openssl_get_error(p));
> + }
> }
>
> if (c->cert_file) {
> --
> 2.39.5 (Apple Git-154)
Pushed as e56fd2af1a0b65bf5a7788462cbaee3b4b909591
_______________________________________________
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".
prev parent reply other threads:[~2025-07-22 1:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 18:06 [FFmpeg-devel] [PATCH 1/3] avformat/tls_openssl: add host verification Marvin Scholz
2025-07-08 18:06 ` [FFmpeg-devel] [PATCH 2/3] avformat/tls_openssl: verify setting hostname for SNI Marvin Scholz
2025-07-08 18:16 ` Nicolas George
2025-07-08 18:26 ` Marvin Scholz
2025-07-08 18:33 ` Nicolas George
2025-07-08 18:06 ` [FFmpeg-devel] [PATCH 3/3] avformat/tls_openssl: load default verify locations Marvin Scholz
2025-07-08 18:16 ` [FFmpeg-devel] [PATCH 1/3] avformat/tls_openssl: add host verification Nicolas George
2025-07-08 18:17 ` Marvin Scholz
2025-07-08 18:21 ` Nicolas George
2025-07-08 18:24 ` Marvin Scholz
2025-07-08 18:33 ` Nicolas George
2025-07-08 18:50 ` Marvin Scholz
2025-07-08 18:53 ` Nicolas George
2025-07-08 18:28 ` [FFmpeg-devel] [PATCH v2 " Marvin Scholz
2025-07-08 18:28 ` [FFmpeg-devel] [PATCH v2 2/3] avformat/tls_openssl: verify setting hostname for SNI Marvin Scholz
2025-07-08 18:28 ` [FFmpeg-devel] [PATCH v2 3/3] avformat/tls_openssl: load default verify locations Marvin Scholz
2025-07-08 18:53 ` [FFmpeg-devel] [PATCH v3 1/3] avformat/tls_openssl: add hostname for verification Marvin Scholz
2025-07-08 18:53 ` [FFmpeg-devel] [PATCH v3 2/3] avformat/tls_openssl: verify setting hostname for SNI Marvin Scholz
2025-07-08 18:53 ` [FFmpeg-devel] [PATCH v3 3/3] avformat/tls_openssl: load default verify locations Marvin Scholz
2025-07-10 10:55 ` [FFmpeg-devel] [PATCH v3 1/3] avformat/tls_openssl: add hostname for verification Marvin Scholz
2025-07-10 11:51 ` [FFmpeg-devel] [PATCH v4 " Marvin Scholz
2025-07-10 11:51 ` [FFmpeg-devel] [PATCH v4 2/3] avformat/tls_openssl: verify setting hostname for SNI Marvin Scholz
2025-07-10 11:51 ` [FFmpeg-devel] [PATCH v4 3/3] avformat/tls_openssl: load default verify locations Marvin Scholz
2025-07-22 1:00 ` Marvin Scholz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8477CE88-2573-40F5-A6C7-F1D3D6699C90@gmail.com \
--to=epirat07@gmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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