Use CRIOGET to fetch a crypto descriptor when present.
authorJohn Baldwin <jhb@FreeBSD.org>
Sat, 21 Nov 2020 01:07:35 +0000 (17:07 -0800)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 5 Jan 2021 23:16:16 +0000 (15:16 -0800)
commitb39c215decf6e68c28cb64dcfaf5ae5a7e8d35b4
tree0e5e9d1d10fc124c68e249cd7f764db74048a4cb
parent3497cc8776d50397ceefbd41bd3356a7f5d30c14
Use CRIOGET to fetch a crypto descriptor when present.

FreeBSD's current /dev/crypto implementation requires that consumers
clone a separate file descriptor via the CRIOGET ioctl that can then
be used with other ioctls such as CIOCGSESSION.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/13468)
engines/e_devcrypto.c