You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/tls_gnutls: correct version detection for certificate support
Fixes Ticket3748 Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
d21ab8e411
commit
1bbb5ea10d
@@ -144,7 +144,7 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
av_log(h, AV_LOG_ERROR, "%s\n", gnutls_strerror(ret));
|
av_log(h, AV_LOG_ERROR, "%s\n", gnutls_strerror(ret));
|
||||||
}
|
}
|
||||||
#if GNUTLS_VERSION_MAJOR >= 3
|
#if GNUTLS_VERSION_NUMBER >= 0x030020
|
||||||
else
|
else
|
||||||
gnutls_certificate_set_x509_system_trust(p->cred);
|
gnutls_certificate_set_x509_system_trust(p->cred);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user