Fix crypto build on FreeBSD HEAD

Update API usage to reflect recent change.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10384
This commit is contained in:
Matthew Macy 2020-05-30 12:54:57 -07:00 committed by GitHub
parent 9052e3d70b
commit 3bf3b164ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;