Skip to content
Snippets Groups Projects
Commit 1bbb5ea1 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Michael Niedermayer
Browse files

avformat/tls_gnutls: correct version detection for certificate support


Fixes Ticket3748

Signed-off-by: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent d21ab8e4
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment