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 01C784E862 for ; Sun, 13 Jul 2025 00:33:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8A8AF68F418; Sun, 13 Jul 2025 03:33:06 +0300 (EEST) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id C6D7C68F142 for ; Sun, 13 Jul 2025 03:32:59 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E962E43EB4 for ; Sun, 13 Jul 2025 00:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752366779; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kMVDuvVzX907FRji1LFXPW0EOQaUlYhTqsE1rd0Azkg=; b=G7Onen0RS3aOc/MJ3rr2oCxElw1k98oO76+sTlbUII9XQerGlVmD0yQdodl3pbnXK2sT8u GyVdM+VLXK65kun0N8hLZVHdacfwOwAJ+lYg3N/iauCctE1Z8A/ZzQLhOEquZ0VntzGV6H pon2uTioRyc7h4VgefABHPlNOje6MsvmMsdnBxUtBdT4nd+I/SUhdHz6JVty/Saqkgvge5 snIA/KpnZJIIikjx8f+AGc8bMsr8JePEYRK7VdGVVfIdNg/QJjtzMPk/QPvAn6HfAOSpR4 TdYo9TcAD2djKP61vnFodJUzCJToz56xfiGLJX0Czm/XPsmUE7aUgZr1dLGyfA== Date: Sun, 13 Jul 2025 02:32:57 +0200 From: Michael Niedermayer To: ffmpeg-devel@ffmpeg.org Message-ID: <20250713003257.GA1099245@pb2> References: <20250711160418.F0282412864@natalya.videolan.org> MIME-Version: 1.0 In-Reply-To: <20250711160418.F0282412864@natalya.videolan.org> X-GND-State: clean X-GND-Score: 15 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegjeeigecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucgfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhephfejffelteetkeekffeljeevleetvdeiieejfeeffeduudelheehudehkedugfdunecuffhomhgrihhnpehvihguvgholhgrnhdrohhrghenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avformat/tls_schannel: add DTLS support 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 Content-Type: multipart/mixed; boundary="===============2790212171941790633==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2790212171941790633== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 11, 2025 at 04:04:17PM +0000, Timo Rothenpieler wrote: > ffmpeg | branch: master | Timo Rothenpieler | Tue= Jun 24 19:30:19 2025 +0200| [90fa9636efff84ec5a4b06815722c08188dca551] | c= ommitter: Timo Rothenpieler >=20 > avformat/tls_schannel: add DTLS support >=20 > > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=3Dcommit;h=3D90fa9636e= fff84ec5a4b06815722c08188dca551 > --- >=20 > configure | 6 +- > libavformat/tls_schannel.c | 890 +++++++++++++++++++++++++++++++++++++++= ++---- > libavformat/version.h | 2 +- > 3 files changed, 833 insertions(+), 65 deletions(-) breaks on mingw64 src/libavformat/tls_schannel.c: In function =E2=80=98ff_dtls_export_materia= ls=E2=80=99: src/libavformat/tls_schannel.c:606:5: error: unknown type name =E2=80=98Sec= PkgContext_KeyingMaterialInfo=E2=80=99; did you mean =E2=80=98SecPkgContext= _NegotiationInfo=E2=80=99? 606 | SecPkgContext_KeyingMaterialInfo keying_info =3D { 0 }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SecPkgContext_NegotiationInfo src/libavformat/tls_schannel.c:607:5: error: unknown type name =E2=80=98Sec= PkgContext_KeyingMaterial=E2=80=99; did you mean =E2=80=98SecPkgContext_Key= InfoW=E2=80=99? 607 | SecPkgContext_KeyingMaterial keying_material =3D { 0 }; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SecPkgContext_KeyInfoW src/libavformat/tls_schannel.c:615:16: error: request for member =E2=80=98c= bLabel=E2=80=99 in something not a structure or union 615 | keying_info.cbLabel =3D strlen(dst) + 1; | ^ src/libavformat/tls_schannel.c:616:16: error: request for member =E2=80=98p= szLabel=E2=80=99 in something not a structure or union 616 | keying_info.pszLabel =3D (LPSTR)dst; | ^ src/libavformat/tls_schannel.c:617:16: error: request for member =E2=80=98c= bContextValue=E2=80=99 in something not a structure or union 617 | keying_info.cbContextValue =3D 0; | ^ src/libavformat/tls_schannel.c:618:16: error: request for member =E2=80=98p= bContextValue=E2=80=99 in something not a structure or union 618 | keying_info.pbContextValue =3D NULL; | ^ src/libavformat/tls_schannel.c:619:16: error: request for member =E2=80=98c= bKeyingMaterial=E2=80=99 in something not a structure or union 619 | keying_info.cbKeyingMaterial =3D materials_sz; | ^ src/libavformat/tls_schannel.c:621:54: error: =E2=80=98SECPKG_ATTR_KEYING_M= ATERIAL_INFO=E2=80=99 undeclared (first use in this function); did you mean= =E2=80=98SECPKG_ATTR_NEGOTIATION_INFO=E2=80=99? 621 | sspi_ret =3D SetContextAttributes(&c->ctxt_handle, SECPKG_ATTR_= KEYING_MATERIAL_INFO, &keying_info, sizeof(keying_info)); | ^~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~ | SECPKG_ATTR_NE= GOTIATION_INFO src/libavformat/tls_schannel.c:621:54: note: each undeclared identifier is = reported only once for each function it appears in src/libavformat/tls_schannel.c:627:56: error: =E2=80=98SECPKG_ATTR_KEYING_M= ATERIAL=E2=80=99 undeclared (first use in this function) 627 | sspi_ret =3D QueryContextAttributes(&c->ctxt_handle, SECPKG_ATT= R_KEYING_MATERIAL, &keying_material); | ^~~~~~~~~~~~= ~~~~~~~~~~~~~~~ src/libavformat/tls_schannel.c:633:48: error: request for member =E2=80=98p= bKeyingMaterial=E2=80=99 in something not a structure or union 633 | memcpy(dtls_srtp_materials, keying_material.pbKeyingMaterial, F= FMIN(materials_sz, keying_material.cbKeyingMaterial)); | ^ In file included from src/libavutil/error.h:30, from src/libavutil/common.h:43, from src/libavutil/avutil.h:300, from src/libavcodec/codec_par.h:26, from src/libavformat/avformat.h:312, from src/libavformat/tls_schannel.c:24: src/libavformat/tls_schannel.c:633:102: error: request for member =E2=80=98= cbKeyingMaterial=E2=80=99 in something not a structure or union 633 | memcpy(dtls_srtp_materials, keying_material.pbKeyingMaterial, F= FMIN(materials_sz, keying_material.cbKeyingMaterial)); | = ^ src/libavutil/macros.h:49:28: note: in definition of macro =E2=80=98FFMIN= =E2=80=99 49 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) | ^ src/libavformat/tls_schannel.c:633:102: error: request for member =E2=80=98= cbKeyingMaterial=E2=80=99 in something not a structure or union 633 | memcpy(dtls_srtp_materials, keying_material.pbKeyingMaterial, F= FMIN(materials_sz, keying_material.cbKeyingMaterial)); | = ^ src/libavutil/macros.h:49:34: note: in definition of macro =E2=80=98FFMIN= =E2=80=99 49 | #define FFMIN(a,b) ((a) > (b) ? (b) : (a)) | ^ src/libavformat/tls_schannel.c:634:38: error: request for member =E2=80=98p= bKeyingMaterial=E2=80=99 in something not a structure or union 634 | FreeContextBuffer(keying_material.pbKeyingMaterial); | ^ src/libavformat/tls_schannel.c:636:24: error: request for member =E2=80=98c= bKeyingMaterial=E2=80=99 in something not a structure or union 636 | if (keying_material.cbKeyingMaterial > materials_sz) { | ^ src/libavformat/tls_schannel.c:637:96: error: request for member =E2=80=98c= bKeyingMaterial=E2=80=99 in something not a structure or union 637 | av_log(h, AV_LOG_WARNING, "Keying material size mismatch: %= ld > %zu\n", keying_material.cbKeyingMaterial, materials_sz); | = ^ src/libavformat/tls_schannel.c: In function =E2=80=98tls_shutdown_client=E2= =80=99: src/libavformat/tls_schannel.c:710:29: error: =E2=80=98SEC_I_MESSAGE_FRAGME= NT=E2=80=99 undeclared (first use in this function) 710 | } while(sspi_ret =3D=3D SEC_I_MESSAGE_FRAGMENT || sspi_ret = =3D=3D SEC_I_CONTINUE_NEEDED); | ^~~~~~~~~~~~~~~~~~~~~~ src/libavformat/tls_schannel.c: In function =E2=80=98tls_handshake_loop=E2= =80=99: src/libavformat/tls_schannel.c:862:62: error: =E2=80=98SEC_I_MESSAGE_FRAGME= NT=E2=80=99 undeclared (first use in this function) 862 | if (sspi_ret =3D=3D SEC_I_CONTINUE_NEEDED || sspi_ret =3D= =3D SEC_I_MESSAGE_FRAGMENT || sspi_ret =3D=3D SEC_E_OK) { | ^~~~~~= ~~~~~~~~~~~~~~~~ src/libavformat/tls_schannel.c: In function =E2=80=98tls_handshake=E2=80=99: src/libavformat/tls_schannel.c:1016:58: error: =E2=80=98SECPKG_ATTR_DTLS_MT= U=E2=80=99 undeclared (first use in this function); did you mean =E2=80=98S= ECPKG_ATTR_TARGET=E2=80=99? 1016 | sspi_ret =3D SetContextAttributes(&c->ctxt_handle, SECPKG_A= TTR_DTLS_MTU, &mtu, sizeof(mtu)); | ^~~~~~~~~~= ~~~~~~~~~~ | SECPKG_ATT= R_TARGET src/libavformat/tls_schannel.c: In function =E2=80=98tls_open=E2=80=99: src/libavformat/tls_schannel.c:1072:51: error: =E2=80=98SP_PROT_DTLS1_X_SER= VER=E2=80=99 undeclared (first use in this function); did you mean =E2=80= =98SP_PROT_TLS1_SERVER=E2=80=99? 1072 | schannel_cred.grbitEnabledProtocols =3D SP_PROT_DTLS1_X= _SERVER; | ^~~~~~~~~~~~~~~~~= ~~~~~ | SP_PROT_TLS1_SERV= ER src/libavformat/tls_schannel.c:1083:51: error: =E2=80=98SP_PROT_DTLS1_X_CLI= ENT=E2=80=99 undeclared (first use in this function); did you mean =E2=80= =98SP_PROT_TLS1_CLIENT=E2=80=99? 1083 | schannel_cred.grbitEnabledProtocols =3D SP_PROT_DTLS1_X= _CLIENT; | ^~~~~~~~~~~~~~~~~= ~~~~~ | SP_PROT_TLS1_CLIE= NT make: *** [/home/michael/ffmpeg-git/ffmpeg/ffbuild/common.mak:81: libavform= at/tls_schannel.o] Error 1 make: *** Waiting for unfinished jobs.... STRIP libavfilter/x86/colorspacedsp.o [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Everything should be made as simple as possible, but not simpler. -- Albert Einstein --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaHL+swAKCRBhHseHBAsP q7g3AJ92o2dn+X9XTckUu/k1+AdgdhZWeQCghSV2ETuNPSGnBjTkygiFd4MPOKA= =0byF -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- --===============2790212171941790633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============2790212171941790633==--