mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 07:31:11 +00:00
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 27bb8830d5
)
This commit is contained in:
parent
d3cc82c9b7
commit
96ec9e3c31
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue