Change ossltest engine to manually allocate cipher_data
authorMatt Caswell <matt@openssl.org>
Tue, 22 Sep 2015 07:54:43 +0000 (08:54 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 25 Sep 2015 14:13:57 +0000 (15:13 +0100)
commit51a6081719373d5dabda0d628d1637c501dd2068
tree8be21554ae1e269cbdd15fc75cc920b61d4dc38f
parenta2c1dedc5de3312fd4d6506923f2a61eecc67985
Change ossltest engine to manually allocate cipher_data

The ossltest engine wraps the built-in implementation of aes128-cbc.
Normally in an engine the cipher_data structure is automatically allocated
by the EVP layer. However this relies on the engine specifying up front
the size of that cipher_data structure. In the case of ossltest this value
isn't available at compile time. This change makes the ossltest engine
allocate its own cipher_data structure instead of leaving it to the EVP
layer.

Reviewed-by: Andy Polyakov <appro@openssl.org>
engines/e_ossltest.c
engines/e_ossltest_err.c
engines/e_ossltest_err.h