Skip to content

Commit

Permalink
SSL_read,SSL_write errors sometimes stated SSL_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Rieger committed Jan 1, 2021
1 parent 12e8dd7 commit 82f5321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ Corrections:
<port> is allowed.
Thanks to John the Scott for reporting this issue.

Error messages from SSL_read() and SSL_write() sometimes stated
SSL_connect instead of originating function name.

Fixed some more non functional minor issues.

Porting:
In gcc version 10 the default changed from -fcommon to -fno-common.
Consequently, linking filan and procan failed with error
Expand Down
4 changes: 2 additions & 2 deletions xio-openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,7 @@ ssize_t xioread_openssl(struct single *pipe, void *buff, size_t bufsiz) {
}
break;
case SSL_ERROR_SSL:
openssl_SSL_ERROR_SSL(E_ERROR, "SSL_connect");
openssl_SSL_ERROR_SSL(E_ERROR, "SSL_read");
break;
default:
Error("unknown error");
Expand Down Expand Up @@ -1998,7 +1998,7 @@ ssize_t xiowrite_openssl(struct single *pipe, const void *buff, size_t bufsiz) {
}
break;
case SSL_ERROR_SSL:
openssl_SSL_ERROR_SSL(E_ERROR, "SSL_connect");
openssl_SSL_ERROR_SSL(E_ERROR, "SSL_write");
break;
default:
Error("unknown error");
Expand Down

0 comments on commit 82f5321

Please sign in to comment.