mirror of
https://github.com/mirror/wget.git
synced 2025-02-12 21:00:55 +08:00
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 <gvanem@yahoo.no>
This commit is contained in:
parent
07a350d30c
commit
c83f344564
@ -545,7 +545,7 @@ ssl_connect_wget (int fd, const char *hostname)
|
|||||||
DEBUGP (("SSL handshake timed out.\n"));
|
DEBUGP (("SSL handshake timed out.\n"));
|
||||||
goto timeout;
|
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;
|
goto error;
|
||||||
|
|
||||||
ctx = xnew0 (struct openssl_transport_context);
|
ctx = xnew0 (struct openssl_transport_context);
|
||||||
|
Loading…
Reference in New Issue
Block a user