From c83f3445649c22b296012837aec07b9072085fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Mon, 9 Feb 2015 10:05:07 +0100 Subject: [PATCH] src/openssl.c: Use SSL_state() instead of ssl_st.state Changes in OpenSSL 1.0.2 API hides ssl_st structure members. Reported-by: Gisle Vanem --- src/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openssl.c b/src/openssl.c index e74bdd0a..fe2a0bcf 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -545,7 +545,7 @@ ssl_connect_wget (int fd, const char *hostname) DEBUGP (("SSL handshake timed out.\n")); goto timeout; } - if (scwt_ctx.result <= 0 || conn->state != SSL_ST_OK) + if (scwt_ctx.result <= 0 || SSL_state(conn) != SSL_ST_OK) goto error; ctx = xnew0 (struct openssl_transport_context);