tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: print/cups build problems on 4.0.1



> Nothing attached.
Oops. Next try.

> Can you please send a complete tested diff?
It's only compile-tested up to now.
--- config-scripts/cups-ssl.m4.orig
+++ config-scripts/cups-ssl.m4
@@ -149,6 +149,9 @@
                    $libcrypto)
 
                if test "x${SSLLIBS}" != "x"; then
+                   LIBS="$SAVELIBS $SSLLIBS"
+                   AC_CHECK_FUNC(SSL_set_tlsext_host_name,
+                       AC_DEFINE(HAVE_SSL_SET_TLSEXT_HOST_NAME))
                    break
                fi
            done
--- config.h.in.orig
+++ config.h.in
@@ -296,6 +296,13 @@
 
 
 /*
+ * Do we have the SSL_set_tlsext_host_name function?
+ */
+
+#undef HAVE_SSL_SET_TLSEXT_HOST_NAME
+
+
+/*
  * What Security framework headers do we have?
  */
 
--- cups/http.c.orig    2011-12-16 08:16:04.000000000 +0100
+++ cups/http.c 2012-04-17 12:19:31.000000000 +0200
@@ -3888,7 +3888,9 @@
   http->tls = SSL_new(context);
   SSL_set_bio(http->tls, bio, bio);
 
+#ifdef HAVE_SSL_SET_TLSEXT_HOST_NAME
   SSL_set_tlsext_host_name(http->tls, hostname);
+#endif
 
   if (SSL_connect(http->tls) != 1)
   {


Home | Main Index | Thread Index | Old Index