Hi,
Was it by design that stunnel's logging of OpenSSL errors does not include the OpenSSL source file and line number?
If not, please consider switching from ERR_get_error to ERR_get_error_line https://www.openssl.org/docs/man1.0.2/crypto/ERR_get_error_line.html.
Thanks, -- Tom