engines/e_devcrypto.c: fix cipher_ctrl function
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Tue, 12 Feb 2019 18:53:15 +0000 (16:53 -0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 22 Feb 2019 08:42:56 +0000 (09:42 +0100)
commit91958d71aaea98854a9709a8489263c79a01addd
treefca2756fa7ae4eceff8558029c08f1d20eec753d
parent84effd3d16b8e8d86a4829c6a80767f59e4bc3af
engines/e_devcrypto.c: fix cipher_ctrl function

This fixes commit c703a80, which had a mistake in cipher_ctrl function.

Move the /dev/crypto session cleanup code to its own function.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8213)
engines/e_devcrypto.c