diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-02-17 22:51:58 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-02-17 22:51:58 +0000 |
commit | 96ec9e3c313d291b87547a557f996e5d9bd16b28 (patch) | |
tree | e41bc8ce281ceb692d786b88aa4e487f04b153d7 | |
parent | d3cc82c9b7aa08ee3643dfd39c6c51250844cdc8 (diff) |
SSL_sendfile: Replace ERR_raise_data with SYSerr.
ERR_raise_data is only present in OpenSSL 3.0 and later.
Reviewed by: jkim
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D33363
(cherry picked from commit 27bb8830d555621d4292da8a83f3bc09176fd00d)
-rw-r--r-- | crypto/openssl/ssl/ssl_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssl/ssl/ssl_lib.c b/crypto/openssl/ssl/ssl_lib.c index b3ae7b1b1336..ff5a9e05660b 100644 --- a/crypto/openssl/ssl/ssl_lib.c +++ b/crypto/openssl/ssl/ssl_lib.c @@ -2028,7 +2028,8 @@ ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size, int flags) } #ifdef OPENSSL_NO_KTLS - ERR_raise_data(ERR_LIB_SYS, ERR_R_INTERNAL_ERROR, "calling sendfile()"); + SYSerr(SSL_F_SSL_SENDFILE, ERR_R_INTERNAL_ERROR); + ERR_add_error_data(1, "calling sendfile()"); return -1; #else ret = ktls_sendfile(SSL_get_wfd(s), fd, offset, size, flags); |