aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-05-30 12:54:57 -0700
committerGitHub <[email protected]>2020-05-30 12:54:57 -0700
commit3bf3b164ee18b2897f9f8812f053704a10a1481d (patch)
tree5b61e13875edf313569b4f1784a07ceea39077c6
parent9052e3d70bacdbcc51cbef8b7f0566b49d2f736b (diff)
Fix crypto build on FreeBSD HEAD
Update API usage to reflect recent change. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10384
-rw-r--r--module/os/freebsd/zfs/crypto_os.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/os/freebsd/zfs/crypto_os.c b/module/os/freebsd/zfs/crypto_os.c
index cc86074c2..b86ffc59a 100644
--- a/module/os/freebsd/zfs/crypto_os.c
+++ b/module/os/freebsd/zfs/crypto_os.c
@@ -343,9 +343,7 @@ freebsd_crypt_uio(boolean_t encrypt,
CRYPTO_OP_VERIFY_DIGEST;
}
crp->crp_flags = CRYPTO_F_CBIFSYNC | CRYPTO_F_IV_SEPARATE;
- crp->crp_buf_type = CRYPTO_BUF_UIO;
- crp->crp_uio = (void*)data_uio;
- crp->crp_ilen = data_uio->uio_resid;
+ crypto_use_uio(crp, data_uio);
crp->crp_aad_start = 0;
crp->crp_aad_length = auth_len;