wget/wget-openssl-no-intern.patch
Reinhard Max 04eeb023ec Accepting request 136240 from home:elvigia:branches:network:utilities
- Build with OPENSSL_NO_SSL_INTERN, which is openssl's poor
 man's version of visibility, to avoid breaking applications
 ABI on library internal changes.

OBS-URL: https://build.opensuse.org/request/show/136240
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wget?expand=0&rev=28
2012-09-27 13:52:44 +00:00

20 lines
633 B
Diff

--- src/openssl.c.orig
+++ src/openssl.c
@@ -29,6 +29,7 @@ Corresponding Source for a non-source fo
shall include the source code for the parts of OpenSSL used as well
as that of the covered work. */
+#define OPENSSL_NO_SSL_INTERN
#include "wget.h"
#include <assert.h>
@@ -429,7 +430,7 @@ ssl_connect_wget (int fd, const char *ho
if (!SSL_set_fd (conn, FD_TO_SOCKET (fd)))
goto error;
SSL_set_connect_state (conn);
- if (SSL_connect (conn) <= 0 || conn->state != SSL_ST_OK)
+ if (SSL_connect (conn) <= 0 || SSL_get_state(conn) != SSL_ST_OK)
goto error;
ctx = xnew0 (struct openssl_transport_context);