From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id BBFF540D71 for ; Sun, 13 Jul 2025 19:26:05 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 9C9B968E332; Sun, 13 Jul 2025 22:25:33 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 3091C68BC58 for ; Sun, 13 Jul 2025 22:25:23 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 99C4B27FFCCAC; Sun, 13 Jul 2025 21:25:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1752434722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t98d+Zy9CJd5PaQLqxdWI3LqMfPwpUHju85Mj2mnfa0=; b=A62vHouyzLCGM46KTLoHPt6/rdpUOoEVy1nXi6gvYth61VV0gSEODIACook9o7RJIYhPWX /BaTmBHyJef39FDX4aa90n3B0RTFc5Oi5miCCFadrxSBktW5iKxfBwVBfLpH/zkD0RkSYq NsK5HITvl5TIWbsOw0bR3Ma3o+cwrwnt79HyFI8keo62ZL6yqhvIn+h31BV2Ih/cwYBvFv NJr3HgzpJ0ecYgKaoG7MK9YbnYvNoz+FV3PuETWn287UtY+41wuY8PBXysdt0ltqPkypI5 ydzV8jEpG38tVoPdCj+GkDXJrn27Xsy/tkD3lU9rwJnkvalz/PtCF+v/t6MoHA== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sun, 13 Jul 2025 21:24:38 +0200 Message-ID: <20250713192512.928390-4-timo@rothenpieler.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250713192512.928390-1-timo@rothenpieler.org> References: <20250713192512.928390-1-timo@rothenpieler.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 04/14] avformat/tls_openssl: initialize DTLS context with correct method X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Timo Rothenpieler Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- libavformat/tls_openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/tls_openssl.c b/libavformat/tls_openssl.c index 81b2f066c9..f116b5eac6 100644 --- a/libavformat/tls_openssl.c +++ b/libavformat/tls_openssl.c @@ -786,7 +786,7 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** /* Refer to the test cases regarding these curves in the WebRTC code. */ const char* curves = "X25519:P-256:P-384:P-521"; - p->ctx = SSL_CTX_new(DTLS_method()); + p->ctx = SSL_CTX_new(c->listen ? DTLS_server_method() : DTLS_client_method()); if (!p->ctx) { ret = AVERROR(ENOMEM); goto fail; @@ -810,6 +810,7 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary ** ret = AVERROR(EINVAL); return ret; } + ret = openssl_init_ca_key_cert(h); if (ret < 0) goto fail; -- 2.49.0 _______________________________________________ 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".