--- /dev/null
+--- cups-1.5.0/cups/http.c~ 2011-06-16 22:12:16.000000000 +0200
++++ cups-1.5.0/cups/http.c 2011-08-02 14:06:25.143633360 +0200
+@@ -3814,7 +3814,7 @@
+ BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)http);
+
+ http->tls = SSL_new(context);
+- SSL_set_bio(http->tls_credentials, bio, bio);
++ SSL_set_bio(http->tls, bio, bio);
+
+ if (SSL_connect(http->tls) != 1)
+ {
+@@ -4173,11 +4173,11 @@
+ # ifdef HAVE_LIBSSL
+ SSL_CTX *context; /* Context for encryption */
+
+- context = SSL_get_SSL_CTX(http->tls_credentials);
++ context = SSL_get_SSL_CTX(http->tls);
+
+- SSL_shutdown(http->tls_credentials);
++ SSL_shutdown(http->tls);
+ SSL_CTX_free(context);
+- SSL_free(http->tls_credentials);
++ SSL_free(http->tls);
+
+ # elif defined(HAVE_GNUTLS)
+ gnutls_certificate_client_credentials *credentials;
Summary(pt_BR.UTF-8): Sistema Unix de Impressão
Name: cups
Version: 1.5.0
-Release: 1
+Release: 2
Epoch: 1
License: LGPL v2 (libraries), GPL v2 (the rest) + openssl exception
Group: Applications/Printing
Patch10: %{name}-peercred.patch
Patch11: %{name}-usb.patch
Patch12: %{name}-desktop.patch
+Patch13: %{name}-ssl-segfault.patch
URL: http://www.cups.org/
BuildRequires: acl-devel
BuildRequires: autoconf >= 2.60
# why it hasn't been merged for so long (and why no other distro uses it)
#%patch11 -p1
%patch12 -p1
+%patch13 -p1
%build
%{__aclocal} -I config-scripts