wget/wget-1.14-openssl-no-intern.patch

26 lines
871 B
Diff

---
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
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>
@@ -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)
goto error;
ctx = xnew0 (struct openssl_transport_context);