On 2/27/12 11:01 AM, Martin Storsjö wrote:
This fixes building libavformat with OpenSSL on slightly older
distributions (e.g. CentOS 5.5).
---
  libavformat/tls.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/tls.c b/libavformat/tls.c
index fb84fa8..a9e3b27 100644
--- a/libavformat/tls.c
+++ b/libavformat/tls.c
@@ -177,8 +177,10 @@ static int tls_open(URLContext *h, const char *uri, int 
flags)
          goto fail;
      }
      SSL_set_fd(c->ssl, c->fd);
+#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
      if (!numerichost)
          SSL_set_tlsext_host_name(c->ssl, host);
+#endif
      while (1) {
          ret = SSL_connect(c->ssl);
          if (ret>  0)

Ok.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to