2012-09-27 15:52:44 +02:00
|
|
|
--- src/openssl.c.orig
|
|
|
|
+++ src/openssl.c
|
2013-05-03 10:34:44 +02:00
|
|
|
@@ -29,6 +29,7 @@
|
2012-09-27 15:52:44 +02:00
|
|
|
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>
|
2013-05-03 10:34:44 +02:00
|
|
|
@@ -425,7 +426,7 @@
|
2012-09-27 15:52:44 +02:00
|
|
|
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);
|