mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 14:23:23 +00:00
Fixed regression: SSL_CTX_clear_mode() not available in older OpenSSL versions
This commit is contained in:
parent
72a137c287
commit
cbeb06b19b
5 changed files with 11 additions and 1 deletions
|
@ -1023,6 +1023,7 @@ cont_out:
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_SSL_CTX_clear_mode) || defined(SSL_CTX_clear_mode)
|
||||
/* It seems that OpenSSL-1.1.1 presets the mode differently.
|
||||
Without correction socat might hang in SSL_read() */
|
||||
{
|
||||
|
@ -1034,6 +1035,7 @@ cont_out:
|
|||
SSL_CTX_clear_mode(*ctx, SSL_MODE_AUTO_RETRY);
|
||||
}
|
||||
}
|
||||
#endif /* defined(HAVE_SSL_CTX_clear_mode) || defined(SSL_CTX_clear_mode) */
|
||||
|
||||
if (opt_cafile != NULL || opt_capath != NULL) {
|
||||
if (sycSSL_CTX_load_verify_locations(*ctx, opt_cafile, opt_capath) != 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue