opnsense-src/sys/opencrypto
Mark Johnston 2fa185f9bf crypto: Remove uses of CRYPTO_F_DONE
Previously OCF set CRYPTO_F_DONE prior to invoking the completion
callback, even if the request failed. This isn't particularly useful
and leads to bugs when consumers retry a failed request, since OCF also
asserts that CRYPTO_F_DONE is clear in crypto_dispatch(). (Really, OCF
should retry requests that fail with EAGAIN, but that's a larger
change.)

For now, just stop setting CRYPTO_F_DONE to simplify consumers (and fix
those which fail to clear the flag before retrying a request).

PR:		286321
Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D50104
2025-05-09 00:29:23 +00:00
..
_cryptodev.h sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
cbc_mac.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cbc_mac.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
criov.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
crypto.c crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
cryptodeflate.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
cryptodev.c crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
cryptodev.h crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
cryptodev_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
cryptosoft.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
deflate.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
gfmult.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gfmult.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gmac.c sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gmac.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ktls.h ktls: Remove the socket parameter to ktls_ocf_try() 2024-07-08 12:10:48 -04:00
ktls_ocf.c crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
rmd160.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rmd160.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
xform.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
xform_aes_cbc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_aes_icm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xform_aes_xts.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_auth.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
xform_cbc_mac.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xform_chacha20_poly1305.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
xform_cml.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_comp.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
xform_deflate.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_enc.h sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
xform_gmac.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xform_null.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xform_poly1305.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xform_rmd160.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_sha1.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xform_sha2.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00