From 82f53212041f771a1a4851e89ea4f0857c652744 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Tue, 13 Oct 2020 22:11:05 +0200 Subject: [PATCH] SSL_read,SSL_write errors sometimes stated SSL_connect --- CHANGES | 5 +++++ xio-openssl.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 33e43a7..2dccaf6 100644 --- a/CHANGES +++ b/CHANGES @@ -67,6 +67,11 @@ Corrections: 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 diff --git a/xio-openssl.c b/xio-openssl.c index 2be9ce1..38645c2 100644 --- a/xio-openssl.c +++ b/xio-openssl.c @@ -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"); @@ -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");