aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2022-02-11 08:34:14 +0100
committerAnton Khirnov <anton@khirnov.net>2022-02-15 10:15:25 +0100
commit6f1e14ebedd73359cfd559da7d46c3a48210e170 (patch)
treebb7df0106fdc616d6945296516b1092e6f6afb62
parent0da255dd10fe8ca424291da583b32d9f1afeb3f9 (diff)
downloadffmpeg-6f1e14ebedd73359cfd559da7d46c3a48210e170.tar.gz
avformat/gnutls: Use the systems default crypto policy
We should use the systems crypto policy by default. If there is no system policy, gnutls will use the "NORMAL" policy. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
-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 741578a596..2ab38a199b 100644
--- a/libavformat/tls_gnutls.c
+++ b/libavformat/tls_gnutls.c
@@ -192,7 +192,7 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op
gnutls_transport_set_pull_function(p->session, gnutls_url_pull);
gnutls_transport_set_push_function(p->session, gnutls_url_push);
gnutls_transport_set_ptr(p->session, p);
- gnutls_priority_set_direct(p->session, "NORMAL", NULL);
+ gnutls_set_default_priority(p->session);
do {
if (ff_check_interrupt(&h->interrupt_callback)) {
ret = AVERROR_EXIT;