aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-08-12 20:06:22 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-13 02:24:37 +0200
commit1bbb5ea10d9e5e8c0f6e88a11c41659e69409f7d (patch)
tree3caad7ff3585fffcdcb70ba4b2af3173ff37fc22 /libavformat
parentd21ab8e4119e9f5ace30a813ed1af0d98b3782f1 (diff)
downloadffmpeg-1bbb5ea10d9e5e8c0f6e88a11c41659e69409f7d.tar.gz
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tls_gnutls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c
index 6388f37a8e..4bf9448534 100644
--- a/libavformat/tls_gnutls.c
+++ b/libavformat/tls_gnutls.c
@@ -144,7 +144,7 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op
if (ret < 0)
av_log(h, AV_LOG_ERROR, "%s\n", gnutls_strerror(ret));
}
-#if GNUTLS_VERSION_MAJOR >= 3
+#if GNUTLS_VERSION_NUMBER >= 0x030020
else
gnutls_certificate_set_x509_system_trust(p->cred);
#endif