patch-libavformat_tls_openssl_c 663 B

12345678910111213
  1. $OpenBSD: patch-libavformat_tls_openssl_c,v 1.1 2017/02/05 21:23:00 sthen Exp $
  2. --- libavformat/tls_openssl.c.orig Sun Feb 5 20:55:04 2017
  3. +++ libavformat/tls_openssl.c Sun Feb 5 20:55:14 2017
  4. @@ -208,7 +208,7 @@ static int tls_open(URLContext *h, const char *uri, in
  5. if ((ret = ff_tls_open_underlying(c, h, uri, options)) < 0)
  6. goto fail;
  7. - p->ctx = SSL_CTX_new(c->listen ? TLSv1_server_method() : TLSv1_client_method());
  8. + p->ctx = SSL_CTX_new(c->listen ? SSLv23_server_method() : SSLv23_client_method());
  9. if (!p->ctx) {
  10. av_log(h, AV_LOG_ERROR, "%s\n", ERR_error_string(ERR_get_error(), NULL));
  11. ret = AVERROR(EIO);