2014-01-20 11:14:11 +01:00
|
|
|
---
|
|
|
|
src/openssl.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
Index: wget-1.15/src/openssl.c
|
|
|
|
===================================================================
|
|
|
|
--- wget-1.15.orig/src/openssl.c 2014-01-19 21:35:59.000000000 +0000
|
|
|
|
+++ wget-1.15/src/openssl.c 2014-01-19 21:37:27.000000000 +0000
|
|
|
|
@@ -29,6 +29,7 @@ Corresponding Source for a non-source fo
|
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>
|
2014-01-20 11:14:11 +01:00
|
|
|
@@ -479,7 +480,7 @@ ssl_connect_wget (int fd, const char *ho
|
|
|
|
DEBUGP (("SSL handshake timed out.\n"));
|
|
|
|
goto timeout;
|
|
|
|
}
|
|
|
|
- if (scwt_ctx.result <= 0 || conn->state != SSL_ST_OK)
|
|
|
|
+ if (scwt_ctx.result <= 0 || SSL_get_state(conn) != SSL_ST_OK)
|
2012-09-27 15:52:44 +02:00
|
|
|
goto error;
|
|
|
|
|
|
|
|
ctx = xnew0 (struct openssl_transport_context);
|