diff mbox

[FFmpeg-devel] Use gnutls_set_default_priority

Message ID 20190722094813.13447-1-kwizart@gmail.com
State New
Headers show

Commit Message

Nicolas Chauvet July 22, 2019, 9:48 a.m. UTC
This will use the default priority for gnutls.

When supported, the priority will be set to @SYSTEM which allows to
adapt the ciphers list at runtime according to the policy set.

See also:

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
 libavformat/tls_gnutls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox


diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c
index f32bc2821b..b30e8ea007 100644
--- a/libavformat/tls_gnutls.c
+++ b/libavformat/tls_gnutls.c
@@ -181,7 +181,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, c->tcp);
-    gnutls_priority_set_direct(p->session, "NORMAL", NULL);
+    gnutls_set_default_priority (p->session);
     do {
         ret = gnutls_handshake(p->session);
         if (gnutls_error_is_fatal(ret)) {