mirror of
https://repo.or.cz/socat.git
synced 2025-07-30 14:06:50 +00:00
openssl addresses failed with "nonblocking operation did not complete" when the peer performed a renegotiation
This commit is contained in:
parent
30a3ec3baa
commit
1db7a7b1f7
4 changed files with 92 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/* source: xio-openssl.c */
|
||||
/* Copyright Gerhard Rieger 2002-2008 */
|
||||
/* Copyright Gerhard Rieger 2002-2009 */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* this file contains the implementation of the openssl addresses */
|
||||
|
@ -1054,8 +1054,9 @@ ssize_t xioread_openssl(struct single *pipe, void *buff, size_t bufsiz) {
|
|||
case SSL_ERROR_WANT_WRITE:
|
||||
case SSL_ERROR_WANT_CONNECT:
|
||||
case SSL_ERROR_WANT_X509_LOOKUP:
|
||||
Error("nonblocking operation did not complete");
|
||||
break; /*!*/
|
||||
Info("nonblocking operation did not complete");
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
case SSL_ERROR_SYSCALL:
|
||||
if (ERR_peek_error() == 0) {
|
||||
if (ret == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue