/dev/crypto engine: give CIOCFSESSION the actual sess-id
authorRichard Levitte <levitte@openssl.org>
Mon, 24 Sep 2018 10:18:31 +0000 (12:18 +0200)
committerRichard Levitte <richard@levitte.org>
Fri, 5 Oct 2018 19:55:38 +0000 (21:55 +0200)
commite9a4fb49977858d4f687b138ed68970afc646aa6
treebe2c4cfb01ba7d09e397ee390229a77025907f1d
parent5e130ae6328a4553eaafd7df22a3dcbca1b818b3
/dev/crypto engine: give CIOCFSESSION the actual sess-id

We passed that ioctl a pointer to the whole session_op structure,
which wasn't quite right.

Notified by David Legault.

Fixes #7302

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/7304)

(cherry picked from commit 470096e576941566fd094f2fd793dc2948804ea8)
crypto/engine/eng_devcrypto.c