mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-08 17:11:08 +00:00
avformat/whip: disable DTLS certificate verification
Fix DTLS failure since9549c9ad79WebRTC does not verify CA because it allows self-signed cerificate. Signed-off-by: Jack Lau <jacklau1222gm@gmail.com> (cherry picked from commit6f2f3755a0)
This commit is contained in:
@@ -396,6 +396,8 @@ static av_cold int dtls_initialize(AVFormatContext *s)
|
||||
av_dict_set_int(&opts, "external_sock", 1, 0);
|
||||
av_dict_set_int(&opts, "use_srtp", 1, 0);
|
||||
av_dict_set_int(&opts, "listen", is_dtls_active ? 0 : 1, 0);
|
||||
// Do not verify CA
|
||||
av_dict_set_int(&opts, "verify", 0, 0);
|
||||
ret = ffurl_open_whitelist(&whip->dtls_uc, buf, AVIO_FLAG_READ_WRITE, &s->interrupt_callback,
|
||||
&opts, s->protocol_whitelist, s->protocol_blacklist, NULL);
|
||||
av_dict_free(&opts);
|
||||
|
||||
Reference in New Issue
Block a user